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

Unified Diff: Source/bindings/core/v8/ScriptState.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: whee Created 6 years, 2 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/bindings/core/v8/ScriptState.cpp
diff --git a/Source/bindings/core/v8/ScriptState.cpp b/Source/bindings/core/v8/ScriptState.cpp
index 09d8cd3185dc35e76d9697f973b6a842d0051afc..bf92cc72e7c5d2bae7ca1e53a2578982852ca3de 100644
--- a/Source/bindings/core/v8/ScriptState.cpp
+++ b/Source/bindings/core/v8/ScriptState.cpp
@@ -7,6 +7,7 @@
#include "bindings/core/v8/V8Binding.h"
#include "core/dom/ExecutionContext.h"
+#include "core/frame/LocalDOMWindow.h"
#include "core/frame/LocalFrame.h"
namespace blink {
@@ -85,7 +86,7 @@ void ScriptState::setExecutionContext(ExecutionContext*)
LocalDOMWindow* ScriptState::domWindow() const
haraken 2014/10/31 06:07:04 Rename this to localDOMWindow() in a follow-up CL.
{
v8::HandleScope scope(m_isolate);
- return toDOMWindow(context());
+ return toLocalDOMWindow(toDOMWindow(context()));
}
ScriptState* ScriptState::forMainWorld(LocalFrame* frame)

Powered by Google App Engine
This is Rietveld 408576698