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 |