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

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.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/web/WebLocalFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
index d49378a7512432b6c32187f492ecd4cb95e46135..97bbe6ac434080a8f8bffc1329c265dd5d967255 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -941,7 +941,7 @@ WebAssociatedURLLoader* WebLocalFrameImpl::createAssociatedURLLoader(
}
unsigned WebLocalFrameImpl::unloadListenerCount() const {
- return frame()->localDOMWindow()->pendingUnloadEventListeners();
+ return frame()->domWindow()->pendingUnloadEventListeners();
}
void WebLocalFrameImpl::replaceSelection(const WebString& text) {
@@ -2062,7 +2062,7 @@ void WebLocalFrameImpl::sendOrientationChangeEvent() {
// Legacy window.orientation API
if (RuntimeEnabledFeatures::orientationEventEnabled() && frame()->domWindow())
- frame()->localDOMWindow()->sendOrientationChangeEvent();
+ frame()->domWindow()->sendOrientationChangeEvent();
}
void WebLocalFrameImpl::didCallAddSearchProvider() {
@@ -2179,7 +2179,7 @@ void WebLocalFrameImpl::dispatchMessageEventWithOriginCheck(
const WebSecurityOrigin& intendedTargetOrigin,
const WebDOMEvent& event) {
DCHECK(!event.isNull());
- frame()->localDOMWindow()->dispatchMessageEventWithOriginCheck(
+ frame()->domWindow()->dispatchMessageEventWithOriginCheck(
intendedTargetOrigin.get(), event,
SourceLocation::create(String(), 0, 0, nullptr));
}

Powered by Google App Engine
This is Rietveld 408576698