diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-12 14:27:29 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-13 09:35:20 +0000 |
commit | c30a6232df03e1efbd9f3b226777b07e087a1122 (patch) | |
tree | e992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/third_party/blink/renderer/core/script/script_loader.h | |
parent | 7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff) | |
download | qtwebengine-chromium-c30a6232df03e1efbd9f3b226777b07e087a1122.tar.gz |
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/core/script/script_loader.h')
-rw-r--r-- | chromium/third_party/blink/renderer/core/script/script_loader.h | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/chromium/third_party/blink/renderer/core/script/script_loader.h b/chromium/third_party/blink/renderer/core/script/script_loader.h index b0aee119e05..3b25658c65d 100644 --- a/chromium/third_party/blink/renderer/core/script/script_loader.h +++ b/chromium/third_party/blink/renderer/core/script/script_loader.h @@ -53,9 +53,9 @@ class CORE_EXPORT ScriptLoader final : public GarbageCollected<ScriptLoader>, USING_GARBAGE_COLLECTED_MIXIN(ScriptLoader); public: - ScriptLoader(ScriptElementBase*, bool created_by_parser, bool is_evaluated); + ScriptLoader(ScriptElementBase*, const CreateElementFlags); ~ScriptLoader() override; - void Trace(Visitor*) override; + void Trace(Visitor*) const override; const char* NameInHeapSnapshot() const override { return "ScriptLoader"; } enum LegacyTypeSupport { @@ -152,8 +152,22 @@ class CORE_EXPORT ScriptLoader final : public GarbageCollected<ScriptLoader>, // script elements must have this flag unset ...</spec> bool already_started_ = false; - // <spec href="https://html.spec.whatwg.org/C/#parser-inserted">... Initially, - // script elements must have this flag unset. ...</spec> + // <spec href="https://html.spec.whatwg.org/C/#parser-document">... Initially, + // its value must be null. It is set by the HTML parser and the XML parser on + // script elements they insert ...</spec> + // We use a WeakMember here because we're keeping the parser-inserted + // information separately from the parser document, so ScriptLoader doesn't + // need to keep the parser document alive. + WeakMember<Document> parser_document_; + + // <spec href="https://html.spec.whatwg.org/C/#parser-inserted">script + // elements with non-null parser documents are known as + // "parser-inserted".</spec> + // Note that we don't actually implement "parser inserted" in terms of a + // non-null |parser_document_| like the spec, because it is possible for + // |CreateElementFlags::created_by_parser_| to be true even when + // |CreateElementFlags::parser_document_| is null. Therefore, we have to + // store this information separately. bool parser_inserted_ = false; // <spec href="https://html.spec.whatwg.org/C/#non-blocking">... Initially, |