Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(737)

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXObject.cpp

Issue 2006043002: Improved the reporting of background color information. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added blank line to test expectations. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/modules/accessibility/AXObject.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/accessibility/AXObject.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXObject.cpp b/third_party/WebKit/Source/modules/accessibility/AXObject.cpp
index da4d72af218316f257065688ce9d7808d3255574..ff05360bc8c1bc8986b3c8be1741c74801299c02 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXObject.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXObject.cpp
@@ -512,6 +512,7 @@ void AXObject::updateCachedAttributeValuesIfNeeded() const
return;
m_lastModificationCount = cache.modificationCount();
+ m_cachedBackgroundColor = computeBackgroundColor();
m_cachedIsInertOrAriaHidden = computeIsInertOrAriaHidden();
m_cachedIsDescendantOfLeafNode = (leafNodeAncestor() != 0);
m_cachedIsDescendantOfDisabledNode = (disabledAncestor() != 0);
@@ -924,6 +925,12 @@ String AXObject::textFromAriaDescribedby(AXRelatedObjectVector* relatedObjects)
return textFromElements(true, visited, elements, relatedObjects);
}
+RGBA32 AXObject::backgroundColor() const
+{
+ updateCachedAttributeValuesIfNeeded();
+ return m_cachedBackgroundColor;
+}
+
AccessibilityOrientation AXObject::orientation() const
{
// In ARIA 1.1, the default value for aria-orientation changed from
« no previous file with comments | « third_party/WebKit/Source/modules/accessibility/AXObject.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698