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

Unified Diff: third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinkerRegistry.cpp

Issue 2842923002: Support Inline module script (Closed)
Patch Set: Rebase 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/loader/modulescript/ModuleTreeLinkerRegistry.cpp
diff --git a/third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinkerRegistry.cpp b/third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinkerRegistry.cpp
index e07dd3ed529428b054c2bd10f3bbc454c9f1f1de..0a2b6f3453018c1e33159a64045c68dcde34d3e5 100644
--- a/third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinkerRegistry.cpp
+++ b/third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinkerRegistry.cpp
@@ -27,6 +27,17 @@ ModuleTreeLinker* ModuleTreeLinkerRegistry::Fetch(
return fetcher;
}
+ModuleTreeLinker* ModuleTreeLinkerRegistry::FetchDescendantsForInlineScript(
+ ModuleScript* module_script,
+ Modulator* modulator,
+ ModuleTreeClient* client) {
+ ModuleTreeLinker* fetcher = ModuleTreeLinker::FetchDescendantsForInlineScript(
+ module_script, modulator, this, client);
+ DCHECK(fetcher->IsFetching());
+ active_tree_linkers_.insert(fetcher);
+ return fetcher;
+}
+
void ModuleTreeLinkerRegistry::ReleaseFinishedFetcher(
ModuleTreeLinker* fetcher) {
DCHECK(fetcher->HasFinished());

Powered by Google App Engine
This is Rietveld 408576698