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

Unified Diff: third_party/WebKit/Source/web/tests/WebFrameTest.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/tests/WebFrameTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
index 3d209f9e6ea7813e7907d879136736c0439b5854..21105d1b0ba5ff9d0e3da04cd99af1a8e16eb214 100644
--- a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
@@ -1001,7 +1001,7 @@ TEST_P(ParameterizedWebFrameTest, PostMessageThenDetach) {
NonThrowableExceptionState exceptionState;
MessagePortArray messagePorts;
frame->domWindow()->postMessage(SerializedScriptValue::serialize("message"),
- messagePorts, "*", frame->localDOMWindow(),
+ messagePorts, "*", frame->domWindow(),
exceptionState);
webViewHelper.reset();
EXPECT_FALSE(exceptionState.hadException());
@@ -9149,7 +9149,7 @@ TEST_F(WebFrameSwapTest, WindowOpenOnRemoteFrame) {
ASSERT_TRUE(mainFrame()->isWebLocalFrame());
ASSERT_TRUE(mainFrame()->firstChild()->isWebRemoteFrame());
LocalDOMWindow* mainWindow =
- toWebLocalFrameImpl(mainFrame())->frame()->localDOMWindow();
+ toWebLocalFrameImpl(mainFrame())->frame()->domWindow();
KURL destination = toKURL("data:text/html:destination");
mainWindow->open(destination.getString(), "frame1", "", mainWindow,

Powered by Google App Engine
This is Rietveld 408576698