Index: content/renderer/accessibility/renderer_accessibility_complete.cc |
diff --git a/content/renderer/accessibility/renderer_accessibility_complete.cc b/content/renderer/accessibility/renderer_accessibility_complete.cc |
index be1cde8418753012d1ee65d38d1c5dc4a35c93ae..3fabfa4680f960f10ee4340ee4289109422404f0 100644 |
--- a/content/renderer/accessibility/renderer_accessibility_complete.cc |
+++ b/content/renderer/accessibility/renderer_accessibility_complete.cc |
@@ -16,6 +16,7 @@ |
#include "third_party/WebKit/public/web/WebInputElement.h" |
#include "third_party/WebKit/public/web/WebLocalFrame.h" |
#include "third_party/WebKit/public/web/WebNode.h" |
+#include "third_party/WebKit/public/web/WebSettings.h" |
#include "third_party/WebKit/public/web/WebView.h" |
#include "ui/accessibility/ax_tree.h" |
@@ -24,6 +25,7 @@ using blink::WebDocument; |
using blink::WebNode; |
using blink::WebPoint; |
using blink::WebRect; |
+using blink::WebSettings; |
using blink::WebView; |
namespace content { |
@@ -36,13 +38,15 @@ RendererAccessibilityComplete::RendererAccessibilityComplete( |
serializer_(&tree_source_), |
last_scroll_offset_(gfx::Size()), |
ack_pending_(false) { |
- WebAXObject::enableAccessibility(); |
+ WebView* web_view = render_frame_->GetRenderView()->GetWebView(); |
dmazzoni
2014/08/22 23:20:23
Why does test_runner call this on the WebFrame whi
aboxhall
2014/08/22 23:24:10
How do I get a reference to a WebFrame here?
dmazzoni
2014/08/22 23:31:22
render_frame->GetWebFrame()
|
+ WebSettings* settings = web_view->settings(); |
+ settings->setAccessibilityEnabled(true); |
#if !defined(OS_ANDROID) |
// Skip inline text boxes on Android - since there are no native Android |
// APIs that compute the bounds of a range of text, it's a waste to |
// include these in the AX tree. |
- WebAXObject::enableInlineTextBoxAccessibility(); |
+ settings->setInlineTextBoxAccessibilityEnabled(true); |
#endif |
const WebDocument& document = GetMainDocument(); |