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

Unified Diff: third_party/WebKit/Source/core/loader/DocumentLoader.cpp

Issue 2562323002: Devirtualize Frame::domWindow(). (Closed)
Patch Set: Created 4 years 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/core/loader/DocumentLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
index cd0ad37635b8179069d1bfc7e22ee43e7f2f4497..978a2c09ffa2331eff081a772169090fc10e3587 100644
--- a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
@@ -764,8 +764,7 @@ DocumentWriter* DocumentLoader::createWriterFor(
if (!init.shouldReuseDefaultView())
frame->setDOMWindow(LocalDOMWindow::create(*frame));
- Document* document =
- frame->localDOMWindow()->installNewDocument(mimeType, init);
+ Document* document = frame->domWindow()->installNewDocument(mimeType, init);
if (!init.shouldReuseDefaultView())
frame->page()->chromeClient().installSupplements(*frame);

Powered by Google App Engine
This is Rietveld 408576698