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

Unified Diff: Source/core/rendering/RenderBlockFlow.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/rendering/RenderBlockFlow.cpp
diff --git a/Source/core/rendering/RenderBlockFlow.cpp b/Source/core/rendering/RenderBlockFlow.cpp
index df4eb4890dd809149065a29b96bf5c1a9cf5b5d1..bfbc5e05ffed94e77631ab2aa8ca63d3878a6d01 100644
--- a/Source/core/rendering/RenderBlockFlow.cpp
+++ b/Source/core/rendering/RenderBlockFlow.cpp
@@ -33,6 +33,8 @@
#include "core/accessibility/AXObjectCache.h"
#include "core/frame/FrameView.h"
+#include "core/frame/LocalFrame.h"
+#include "core/frame/Settings.h"
#include "core/rendering/HitTestLocation.h"
#include "core/rendering/RenderFlowThread.h"
#include "core/rendering/RenderLayer.h"
@@ -1783,7 +1785,8 @@ RootInlineBox* RenderBlockFlow::createAndAppendRootInlineBox()
RootInlineBox* rootBox = createRootInlineBox();
m_lineBoxes.appendLineBox(rootBox);
- if (UNLIKELY(AXObjectCache::accessibilityEnabled()) && m_lineBoxes.firstLineBox() == rootBox) {
+ Settings* settings = frame()->settings();
+ if (UNLIKELY(settings && settings->accessibilityEnabled()) && m_lineBoxes.firstLineBox() == rootBox) {
abarth-chromium 2014/08/23 05:59:11 This is sad. We're adding a ton more branches to
aboxhall 2014/08/27 15:26:33 I don't follow.
dmazzoni 2014/08/27 16:17:15 I think Adam is saying that this function (createA
if (AXObjectCache* cache = document().existingAXObjectCache())
cache->recomputeIsIgnored(this);
}

Powered by Google App Engine
This is Rietveld 408576698