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

Unified Diff: Source/web/WebDOMMessageEvent.cpp

Issue 683013002: Extract a DOMWindow interface from LocalDOMWindow and use it in the idl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix incorrect assumption Created 6 years, 1 month 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/WebDOMMessageEvent.cpp
diff --git a/Source/web/WebDOMMessageEvent.cpp b/Source/web/WebDOMMessageEvent.cpp
index 0e76871d536bf89e9aab8c6b19cc3b07492f8c5c..f03bb3897aac026ac698e942bb33af518c650f28 100644
--- a/Source/web/WebDOMMessageEvent.cpp
+++ b/Source/web/WebDOMMessageEvent.cpp
@@ -48,8 +48,9 @@ void WebDOMMessageEvent::initMessageEvent(const WebString& type, bool canBubble,
ASSERT(m_private.get());
ASSERT(isMessageEvent());
LocalDOMWindow* window = 0;
+ // FIXME: Figure out if this is the right thing to do.
if (sourceFrame)
- window = toWebLocalFrameImpl(sourceFrame)->frame()->domWindow();
+ window = toWebLocalFrameImpl(sourceFrame)->frame()->localDOMWindow();
OwnPtrWillBeRawPtr<MessagePortArray> ports = nullptr;
if (sourceFrame)
ports = MessagePort::toMessagePortArray(window->document(), webChannels);

Powered by Google App Engine
This is Rietveld 408576698