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

Unified Diff: third_party/WebKit/Source/core/loader/FrameLoader.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/FrameLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameLoader.cpp b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
index 4cbd51bfa9ecb2615c9f93bd6a81801b4e308834..9c3c745764c12289354da2ed5231d8834ddfa27f 100644
--- a/third_party/WebKit/Source/core/loader/FrameLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
@@ -747,7 +747,7 @@ void FrameLoader::checkCompleted() {
restoreScrollPositionAndViewState();
m_loadType = FrameLoadTypeStandard;
- m_frame->localDOMWindow()->finishedLoading();
+ m_frame->domWindow()->finishedLoading();
}
Frame* parent = m_frame->tree().parent();
@@ -870,7 +870,7 @@ void FrameLoader::loadInSameDocument(
// If we were in the autoscroll/middleClickAutoscroll mode we want to stop
// it before following the link to the anchor
m_frame->eventHandler().stopAutoscroll();
- m_frame->localDOMWindow()->enqueueHashchangeEvent(oldURL, url);
+ m_frame->domWindow()->enqueueHashchangeEvent(oldURL, url);
}
m_documentLoader->setIsClientRedirect(clientRedirect ==
ClientRedirectPolicy::ClientRedirect);
@@ -882,9 +882,9 @@ void FrameLoader::loadInSameDocument(
checkCompleted();
- m_frame->localDOMWindow()->statePopped(
- stateObject ? std::move(stateObject)
- : SerializedScriptValue::nullValue());
+ m_frame->domWindow()->statePopped(stateObject
+ ? std::move(stateObject)
+ : SerializedScriptValue::nullValue());
if (historyLoadType == HistorySameDocumentLoad)
restoreScrollPositionAndViewState();

Powered by Google App Engine
This is Rietveld 408576698