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

Unified Diff: third_party/WebKit/Source/core/html/HTMLScriptElement.h

Issue 1814853003: Track whether an element was inserted via document.write (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: back to ps2 with some changes Created 4 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/html/HTMLScriptElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLScriptElement.h b/third_party/WebKit/Source/core/html/HTMLScriptElement.h
index 1d1dcae44f1b984ed57ea6990047b2092742777f..73d445d6a74e0427f104a464e5883b369b825e09 100644
--- a/third_party/WebKit/Source/core/html/HTMLScriptElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLScriptElement.h
@@ -34,7 +34,7 @@ namespace blink {
class CORE_EXPORT HTMLScriptElement final : public HTMLElement, public ScriptLoaderClient {
DEFINE_WRAPPERTYPEINFO();
public:
- static RawPtr<HTMLScriptElement> create(Document&, bool wasInsertedByParser, bool alreadyStarted = false);
+ static RawPtr<HTMLScriptElement> create(Document&, bool wasInsertedByParser, bool alreadyStarted = false, bool createdDuringDocumentWrite = false);
String text() { return textFromChildren(); }
void setText(const String&);
@@ -49,7 +49,7 @@ public:
DECLARE_VIRTUAL_TRACE();
private:
- HTMLScriptElement(Document&, bool wasInsertedByParser, bool alreadyStarted);
+ HTMLScriptElement(Document&, bool wasInsertedByParser, bool alreadyStarted, bool createdDuringDocumentWrite);
void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicString&) override;
InsertionNotificationRequest insertedInto(ContainerNode*) override;
« no previous file with comments | « third_party/WebKit/Source/core/dom/ScriptRunnerTest.cpp ('k') | third_party/WebKit/Source/core/html/HTMLScriptElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698