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>(); |