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

Unified Diff: third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp

Issue 2790313004: Move ScriptState::domWindow() (Closed)
Patch Set: Rebase again Created 3 years, 8 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: third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
index 8828f7e9a8b178fabe61f7109b89d5a9d0e47606..6d96972d67261642e51f7d8e384e9410f57bbf2f 100644
--- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
@@ -328,6 +328,11 @@ Document* LocalDOMWindow::createDocument(const String& mimeType,
return document;
}
+LocalDOMWindow* LocalDOMWindow::from(const ScriptState* scriptState) {
+ v8::HandleScope scope(scriptState->isolate());
+ return blink::toLocalDOMWindow(scriptState->context());
+}
+
Document* LocalDOMWindow::installNewDocument(const String& mimeType,
const DocumentInit& init,
bool forceXHTML) {
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalDOMWindow.h ('k') | third_party/WebKit/Source/modules/payments/PaymentRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698