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

Unified Diff: Source/core/dom/Document.cpp

Issue 742353004: Implement computedRole and computedName (behind a flag) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Finished pulling out ScopedAXObjectCache etc. Many fprintfs remain. Created 6 years 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: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 0314e34cc9618830ef32cfcfcf5974d2193b9c5b..964eeaa206be2cf006d7230c0c4b80a21cb7e988 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -2269,7 +2269,11 @@ AXObjectCache* Document::axObjectCache() const
Settings* settings = this->settings();
if (!settings || !settings->accessibilityEnabled())
return 0;
+ return alwaysCreateAxObjectCache();
+}
+AXObjectCache* Document::alwaysCreateAxObjectCache() const
+{
// The only document that actually has a AXObjectCache is the top-level
// document. This is because we need to be able to get from any WebCoreAXObject
// to any other WebCoreAXObject on the same page. Using a single cache allows

Powered by Google App Engine
This is Rietveld 408576698