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

Unified Diff: Source/core/accessibility/AXObject.h

Issue 670093002: Get rid of AXComputedObjectAttributeCache (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix comment Created 6 years, 2 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 | « no previous file | Source/core/accessibility/AXObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/accessibility/AXObject.h
diff --git a/Source/core/accessibility/AXObject.h b/Source/core/accessibility/AXObject.h
index 92bffd57d4b97aeb76025cee25a1b2e5ac2cc718..d51353c0089370eea2d11dd67a7c4bbd82d4ea2f 100644
--- a/Source/core/accessibility/AXObject.h
+++ b/Source/core/accessibility/AXObject.h
@@ -579,6 +579,14 @@ protected:
unsigned getLengthForTextRange() const { return text().length(); }
bool m_detached;
+
+private:
+ // 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 bool m_cachedIsIgnored;
+
+ void updateCachedAttributeValuesIfNeeded() const;
};
#define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \
« no previous file with comments | « no previous file | Source/core/accessibility/AXObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698