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

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

Issue 495763005: Switch to using accessibilityEnabled and inlineTextBoxAccessibilityEnabled from settings (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 4 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 | « Source/core/dom/Document.cpp ('k') | Source/core/editing/Editor.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Node.cpp
diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp
index 86b776ca6635bcd78088e9361e474924b4363aff..9b450e8f7bc20d32c6df6d189800971cb29ecb84 100644
--- a/Source/core/dom/Node.cpp
+++ b/Source/core/dom/Node.cpp
@@ -587,7 +587,7 @@ bool Node::isEditableToAccessibility(EditableLevel editableLevel) const
if (editableLevel == RichlyEditable)
return false;
- ASSERT(AXObjectCache::accessibilityEnabled());
+ ASSERT(document().settings() && document().settings()->accessibilityEnabled());
ASSERT(document().existingAXObjectCache());
if (AXObjectCache* cache = document().existingAXObjectCache())
@@ -1848,7 +1848,8 @@ void Node::didMoveToNewDocument(Document& oldDocument)
}
}
- if (AXObjectCache::accessibilityEnabled()) {
+ Settings* settings = document().settings();
+ if (settings && settings->accessibilityEnabled()) {
if (AXObjectCache* cache = oldDocument.existingAXObjectCache())
cache->remove(this);
}
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/editing/Editor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698