Index: third_party/WebKit/Source/modules/exported/WebAXObject.cpp |
diff --git a/third_party/WebKit/Source/modules/exported/WebAXObject.cpp b/third_party/WebKit/Source/modules/exported/WebAXObject.cpp |
index 4263073d640517e561bf04f0958cc07709f3a58c..591c8f3e80dd9aeb24bb58cc6073efc4e6125eb6 100644 |
--- a/third_party/WebKit/Source/modules/exported/WebAXObject.cpp |
+++ b/third_party/WebKit/Source/modules/exported/WebAXObject.cpp |
@@ -1558,16 +1558,6 @@ WebAXObject WebAXObject::FromWebNode(const WebNode& web_node) { |
return cache ? WebAXObject(cache->Get(node)) : WebAXObject(); |
} |
-// static |
-WebAXObject WebAXObject::FromWebView(WebView& web_view) { |
- auto main_frame = web_view.MainFrame(); |
- if (!main_frame) |
- return WebAXObject(); |
- |
- Document* document = main_frame->GetDocument(); |
- return WebAXObject(ToAXObjectCacheImpl(document->AxObjectCache())->Root()); |
-} |
- |
// static |
WebAXObject WebAXObject::FromWebDocument(const WebDocument& web_document) { |
const Document* document = web_document.ConstUnwrap<Document>(); |