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

Unified Diff: third_party/WebKit/Source/core/dom/Modulator.cpp

Issue 2865003002: Make ModulatorImpl execution-context-agnostic (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/ModulatorImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Modulator.cpp
diff --git a/third_party/WebKit/Source/core/dom/Modulator.cpp b/third_party/WebKit/Source/core/dom/Modulator.cpp
index e0b2ed2b428930e29faf449f0602877e7e1f3960..83a11579aaab62e0374015842120886967506e55 100644
--- a/third_party/WebKit/Source/core/dom/Modulator.cpp
+++ b/third_party/WebKit/Source/core/dom/Modulator.cpp
@@ -29,7 +29,7 @@ Modulator* Modulator::From(ScriptState* script_state) {
static_cast<Modulator*>(per_context_data->GetData(kPerContextDataKey));
if (!modulator) {
if (Document* document = ToDocument(ExecutionContext::From(script_state))) {
- modulator = ModulatorImpl::Create(script_state, *document);
+ modulator = ModulatorImpl::Create(script_state, document->Fetcher());
Modulator::SetModulator(script_state, modulator);
}
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/ModulatorImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698