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

Unified Diff: Source/web/tests/CustomEventTest.cpp

Issue 23671002: Refactoring: Add toWebFrameImpl() interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Refactoring: Add toWebFrameImpl() interface. Created 7 years, 4 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: Source/web/tests/CustomEventTest.cpp
diff --git a/Source/web/tests/CustomEventTest.cpp b/Source/web/tests/CustomEventTest.cpp
index e8fe341e3941ccad30308a600e5e159b126f7b3e..810d8d1f819fdedaab6d9e3ebc055f1271f24ac4 100644
--- a/Source/web/tests/CustomEventTest.cpp
+++ b/Source/web/tests/CustomEventTest.cpp
@@ -100,7 +100,7 @@ TEST(CustomEventTest, InitWithSerializedScriptValue)
URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(baseURL.c_str()), WebString::fromUTF8(path.c_str()));
WebView* webView = FrameTestHelpers::createWebViewAndLoad(baseURL + path);
- WebFrameImpl* frame = static_cast<WebFrameImpl*>(webView->mainFrame());
+ WebFrameImpl* frame = toWebFrameImpl(webView->mainFrame());
WebDOMEvent event = frame->frame()->document()->createEvent("CustomEvent", IGNORE_EXCEPTION);
WebDOMCustomEvent customEvent = event.to<WebDOMCustomEvent>();

Powered by Google App Engine
This is Rietveld 408576698