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

Unified Diff: third_party/WebKit/Source/modules/exported/WebAXObject.cpp

Issue 2928033002: Move GetDocument method from WebFrame to WebLocalFrame. (Closed)
Patch Set: Split a DCHECK in two as suggested by boliu@. Created 3 years, 6 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: 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>();

Powered by Google App Engine
This is Rietveld 408576698