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

Unified Diff: Source/core/accessibility/AXNodeObject.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
« no previous file with comments | « no previous file | Source/core/accessibility/AXObjectCache.h » ('j') | Source/core/dom/Document.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/accessibility/AXNodeObject.cpp
diff --git a/Source/core/accessibility/AXNodeObject.cpp b/Source/core/accessibility/AXNodeObject.cpp
index 932711060a11db06ce160fa875015e169d91e8f5..ef4cc743ef143e56393fcc5698423bbac189a9a4 100644
--- a/Source/core/accessibility/AXNodeObject.cpp
+++ b/Source/core/accessibility/AXNodeObject.cpp
@@ -32,6 +32,7 @@
#include "core/accessibility/AXObjectCache.h"
#include "core/dom/NodeTraversal.h"
#include "core/dom/Text.h"
+#include "core/frame/Settings.h"
#include "core/html/HTMLFieldSetElement.h"
#include "core/html/HTMLFrameElementBase.h"
#include "core/html/HTMLInputElement.h"
@@ -1396,7 +1397,7 @@ bool AXNodeObject::canHaveChildren() const
case ScrollBarRole:
return false;
case StaticTextRole:
- if (!axObjectCache()->inlineTextBoxAccessibility())
+ if (!document()->settings() || !document()->settings()->inlineTextBoxAccessibilityEnabled())
dmazzoni 2014/08/23 05:36:01 I think it might be cleaner to implement convenien
aboxhall 2014/08/27 15:26:33 Good idea, done.
return false;
default:
return true;
« no previous file with comments | « no previous file | Source/core/accessibility/AXObjectCache.h » ('j') | Source/core/dom/Document.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698