Index: Source/web/WebDOMMessageEvent.cpp |
diff --git a/Source/web/WebDOMMessageEvent.cpp b/Source/web/WebDOMMessageEvent.cpp |
index 4d6fc02610654c1301e1734b8de70a921f9fe47f..062a4d033a0d887be3f13b343fcefa868f618784 100644 |
--- a/Source/web/WebDOMMessageEvent.cpp |
+++ b/Source/web/WebDOMMessageEvent.cpp |
@@ -52,7 +52,7 @@ void WebDOMMessageEvent::initMessageEvent(const WebString& type, bool canBubble, |
ASSERT(isMessageEvent()); |
DOMWindow* window = 0; |
if (sourceFrame) |
- window = static_cast<const WebFrameImpl*>(sourceFrame)->frame()->domWindow(); |
+ window = toWebFrameImpl(sourceFrame)->frame()->domWindow(); |
OwnPtr<MessagePortArray> ports; |
unwrap<MessageEvent>()->initMessageEvent(type, canBubble, cancelable, messageData, origin, lastEventId, window, ports.release()); |
} |