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

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

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
Index: third_party/WebKit/Source/modules/accessibility/AXObject.h
diff --git a/third_party/WebKit/Source/modules/accessibility/AXObject.h b/third_party/WebKit/Source/modules/accessibility/AXObject.h
index 07ff9562f78facffdb138435170bda5b0b765397..b6ba82f7db65cb17c9b60fa88b9bbd43a4ba0bc4 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXObject.h
+++ b/third_party/WebKit/Source/modules/accessibility/AXObject.h
@@ -722,7 +722,8 @@ public:
//
virtual const AtomicString& accessKey() const { return nullAtom; }
- virtual RGBA32 backgroundColor() const { return Color::transparent; }
+ RGBA32 backgroundColor() const;
+ virtual RGBA32 computeBackgroundColor() const { return Color::transparent; }
virtual RGBA32 color() const { return Color::black; }
// Used by objects of role ColorWellRole.
virtual RGBA32 colorValue() const { return Color::transparent; }
@@ -961,6 +962,7 @@ protected:
// The following cached attribute values (the ones starting with m_cached*)
// are only valid if m_lastModificationCount matches AXObjectCacheImpl::modificationCount().
mutable int m_lastModificationCount;
+ mutable RGBA32 m_cachedBackgroundColor;
mutable bool m_cachedIsIgnored : 1;
mutable bool m_cachedIsInertOrAriaHidden : 1;
mutable bool m_cachedIsDescendantOfLeafNode : 1;

Powered by Google App Engine
This is Rietveld 408576698