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

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: Make WebAXObject methods noops 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
Index: Source/core/dom/Node.cpp
diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp
index 537bf2ee8888bbbae8d9a294206e79fcfbea6ff5..a4e74beb4c9f9e4f777fe8e1924a7854cf6939c6 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,7 @@ void Node::didMoveToNewDocument(Document& oldDocument)
}
}
- if (AXObjectCache::accessibilityEnabled()) {
+ if (document().settings() && document().settings()->accessibilityEnabled()) {
if (AXObjectCache* cache = oldDocument.existingAXObjectCache())
cache->remove(this);
}

Powered by Google App Engine
This is Rietveld 408576698