summaryrefslogtreecommitdiffstats
path: root/accessible/base/nsAccessibilityService.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'accessible/base/nsAccessibilityService.cpp')
-rw-r--r--accessible/base/nsAccessibilityService.cpp24
1 files changed, 21 insertions, 3 deletions
diff --git a/accessible/base/nsAccessibilityService.cpp b/accessible/base/nsAccessibilityService.cpp
index c31dd666ce..d38276572b 100644
--- a/accessible/base/nsAccessibilityService.cpp
+++ b/accessible/base/nsAccessibilityService.cpp
@@ -606,6 +606,24 @@ void nsAccessibilityService::NotifyOfDevPixelRatioChange(
}
}
+void nsAccessibilityService::NotifyAttrElementWillChange(
+ mozilla::dom::Element* aElement, nsAtom* aAttr) {
+ mozilla::dom::Document* doc = aElement->OwnerDoc();
+ MOZ_ASSERT(doc);
+ if (DocAccessible* docAcc = GetDocAccessible(doc)) {
+ docAcc->AttrElementWillChange(aElement, aAttr);
+ }
+}
+
+void nsAccessibilityService::NotifyAttrElementChanged(
+ mozilla::dom::Element* aElement, nsAtom* aAttr) {
+ mozilla::dom::Document* doc = aElement->OwnerDoc();
+ MOZ_ASSERT(doc);
+ if (DocAccessible* docAcc = GetDocAccessible(doc)) {
+ docAcc->AttrElementChanged(aElement, aAttr);
+ }
+}
+
LocalAccessible* nsAccessibilityService::GetRootDocumentAccessible(
PresShell* aPresShell, bool aCanCreate) {
PresShell* presShell = aPresShell;
@@ -820,7 +838,7 @@ void nsAccessibilityService::RecreateAccessible(PresShell* aPresShell,
void nsAccessibilityService::GetStringRole(uint32_t aRole, nsAString& aString) {
#define ROLE(geckoRole, stringRole, ariaRole, atkRole, macRole, macSubrole, \
- msaaRole, ia2Role, androidClass, nameRule) \
+ msaaRole, ia2Role, androidClass, iosIsElement, nameRule) \
case roles::geckoRole: \
aString.AssignLiteral(stringRole); \
return;
@@ -1504,8 +1522,8 @@ bool nsAccessibilityService::Init() {
NS_ADDREF(gApplicationAccessible); // will release in Shutdown()
gApplicationAccessible->Init();
- CrashReporter::AnnotateCrashReport(CrashReporter::Annotation::Accessibility,
- "Active"_ns);
+ CrashReporter::RecordAnnotationCString(
+ CrashReporter::Annotation::Accessibility, "Active");
// Now its safe to start platform accessibility.
if (XRE_IsParentProcess()) PlatformInit();