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

Unified Diff: third_party/WebKit/Source/core/xml/DocumentXSLT.cpp

Issue 2811863002: Move ScriptState::GetExecutionContext (Part 4) (Closed)
Patch Set: Fix Document.cpp 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/xml/DocumentXSLT.cpp
diff --git a/third_party/WebKit/Source/core/xml/DocumentXSLT.cpp b/third_party/WebKit/Source/core/xml/DocumentXSLT.cpp
index 9d4239f893156cd218df6926216d3ca698bb448b..e3bf7f5b87cc2ddfb8d8d0a73a9c138d20681b23 100644
--- a/third_party/WebKit/Source/core/xml/DocumentXSLT.cpp
+++ b/third_party/WebKit/Source/core/xml/DocumentXSLT.cpp
@@ -9,6 +9,7 @@
#include "bindings/core/v8/V8AbstractEventListener.h"
#include "bindings/core/v8/V8Binding.h"
#include "core/dom/Document.h"
+#include "core/dom/ExecutionContext.h"
#include "core/dom/Node.h"
#include "core/dom/ProcessingInstruction.h"
#include "core/events/Event.h"
@@ -38,7 +39,7 @@ class DOMContentLoadedListener final
DCHECK_EQ(event->type(), "DOMContentLoaded");
ScriptState::Scope scope(script_state);
- Document& document = *ToDocument(script_state->GetExecutionContext());
+ Document& document = *ToDocument(ExecutionContext::From(script_state));
DCHECK(!document.Parsing());
// Processing instruction (XML documents only).

Powered by Google App Engine
This is Rietveld 408576698