diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-08-21 10:57:44 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-08-21 10:57:44 +0200 |
commit | 5ef7c8a6a70875d4430752d146bdcb069605d71d (patch) | |
tree | f6256640b6c46d7da221435803cae65326817ba2 /Source/WebKit/chromium/src/WebDOMMessageEvent.cpp | |
parent | decad929f578d8db641febc8740649ca6c574638 (diff) | |
download | qtwebkit-5ef7c8a6a70875d4430752d146bdcb069605d71d.tar.gz |
Imported WebKit commit 356d83016b090995d08ad568f2d2c243aa55e831 (http://svn.webkit.org/repository/webkit/trunk@126147)
New snapshot including various build fixes for newer Qt 5
Diffstat (limited to 'Source/WebKit/chromium/src/WebDOMMessageEvent.cpp')
-rw-r--r-- | Source/WebKit/chromium/src/WebDOMMessageEvent.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/WebKit/chromium/src/WebDOMMessageEvent.cpp b/Source/WebKit/chromium/src/WebDOMMessageEvent.cpp index 53ea43ce1..06cf66fc5 100644 --- a/Source/WebKit/chromium/src/WebDOMMessageEvent.cpp +++ b/Source/WebKit/chromium/src/WebDOMMessageEvent.cpp @@ -32,6 +32,7 @@ #include "WebDOMMessageEvent.h" #include "DOMWindow.h" +#include "Document.h" #include "MessageEvent.h" #include "MessagePort.h" #include "PlatformMessagePortChannel.h" @@ -55,7 +56,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 = static_cast<const WebFrameImpl*>(sourceFrame)->frame()->document()->domWindow(); OwnPtr<MessagePortArray> ports; unwrap<MessageEvent>()->initMessageEvent(type, canBubble, cancelable, messageData, origin, lastEventId, window, ports.release()); } |