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

Unified Diff: third_party/WebKit/Source/core/svg/SVGScriptElement.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: rebase on #384935 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/svg/SVGScriptElement.h
diff --git a/third_party/WebKit/Source/core/svg/SVGScriptElement.h b/third_party/WebKit/Source/core/svg/SVGScriptElement.h
index 97d1022b1234d2101c916f5ad78f9c1e1605a487..525131db4411e4796071ebc720c7b926ca16319a 100644
--- a/third_party/WebKit/Source/core/svg/SVGScriptElement.h
+++ b/third_party/WebKit/Source/core/svg/SVGScriptElement.h
@@ -22,6 +22,7 @@
#define SVGScriptElement_h
#include "core/SVGNames.h"
+#include "core/dom/ScriptLoader.h"
#include "core/dom/ScriptLoaderClient.h"
#include "core/svg/SVGAnimatedBoolean.h"
#include "core/svg/SVGAnimatedString.h"
@@ -40,7 +41,7 @@ class SVGScriptElement final
DEFINE_WRAPPERTYPEINFO();
USING_GARBAGE_COLLECTED_MIXIN(SVGScriptElement);
public:
- static SVGScriptElement* create(Document&, bool wasInsertedByParser);
+ static SVGScriptElement* create(Document&, int constructionContextFlags);
ScriptLoader* loader() const { return m_loader.get(); }
@@ -51,7 +52,7 @@ public:
DECLARE_VIRTUAL_TRACE();
private:
- SVGScriptElement(Document&, bool wasInsertedByParser, bool alreadyStarted);
+ SVGScriptElement(Document&, int constructionContextFlags);
void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicString&) override;
InsertionNotificationRequest insertedInto(ContainerNode*) override;

Powered by Google App Engine
This is Rietveld 408576698