summaryrefslogtreecommitdiffstats
path: root/accessible/ipc/RemoteAccessible.cpp
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:37 +0000
commita90a5cba08fdf6c0ceb95101c275108a152a3aed (patch)
tree532507288f3defd7f4dcf1af49698bcb76034855 /accessible/ipc/RemoteAccessible.cpp
parentAdding debian version 126.0.1-1. (diff)
downloadfirefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.tar.xz
firefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.zip
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'accessible/ipc/RemoteAccessible.cpp')
-rw-r--r--accessible/ipc/RemoteAccessible.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/accessible/ipc/RemoteAccessible.cpp b/accessible/ipc/RemoteAccessible.cpp
index 772fc58776..0077750ed3 100644
--- a/accessible/ipc/RemoteAccessible.cpp
+++ b/accessible/ipc/RemoteAccessible.cpp
@@ -1329,6 +1329,13 @@ void RemoteAccessible::DOMNodeID(nsString& aID) const {
}
}
+void RemoteAccessible::DOMNodeClass(nsString& aClass) const {
+ if (mCachedFields) {
+ mCachedFields->GetAttribute(CacheKey::DOMNodeClass, aClass);
+ VERIFY_CACHE(CacheDomain::DOMNodeIDAndClass);
+ }
+}
+
void RemoteAccessible::ScrollToPoint(uint32_t aScrollType, int32_t aX,
int32_t aY) {
Unused << mDoc->SendScrollToPoint(mID, aScrollType, aX, aY);
@@ -1551,7 +1558,7 @@ already_AddRefed<AccAttributes> RemoteAccessible::Attributes() {
}
nsString className;
- mCachedFields->GetAttribute(CacheKey::DOMNodeClass, className);
+ DOMNodeClass(className);
if (!className.IsEmpty()) {
attributes->SetAttribute(nsGkAtoms::_class, std::move(className));
}