| Index: third_party/WebKit/Source/core/html/HTMLScriptElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLScriptElement.cpp b/third_party/WebKit/Source/core/html/HTMLScriptElement.cpp
|
| index d61560f575c8c30e73eae448b428f780c16befe9..6db55e8ae10a936be4fd628ce1c63bb011f8017c 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLScriptElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLScriptElement.cpp
|
| @@ -37,15 +37,15 @@ namespace blink {
|
|
|
| using namespace HTMLNames;
|
|
|
| -inline HTMLScriptElement::HTMLScriptElement(Document& document, bool wasInsertedByParser, bool alreadyStarted)
|
| +inline HTMLScriptElement::HTMLScriptElement(Document& document, int constructionContextFlags)
|
| : HTMLElement(scriptTag, document)
|
| - , m_loader(ScriptLoader::create(this, wasInsertedByParser, alreadyStarted))
|
| + , m_loader(ScriptLoader::create(this, constructionContextFlags))
|
| {
|
| }
|
|
|
| -RawPtr<HTMLScriptElement> HTMLScriptElement::create(Document& document, bool wasInsertedByParser, bool alreadyStarted)
|
| +RawPtr<HTMLScriptElement> HTMLScriptElement::create(Document& document, int constructionContextFlags)
|
| {
|
| - return new HTMLScriptElement(document, wasInsertedByParser, alreadyStarted);
|
| + return new HTMLScriptElement(document, constructionContextFlags);
|
| }
|
|
|
| bool HTMLScriptElement::isURLAttribute(const Attribute& attribute) const
|
| @@ -176,7 +176,8 @@ void HTMLScriptElement::dispatchLoadEvent()
|
|
|
| RawPtr<Element> HTMLScriptElement::cloneElementWithoutAttributesAndChildren()
|
| {
|
| - return new HTMLScriptElement(document(), false, m_loader->alreadyStarted());
|
| + int constructionContextFlags = m_loader->alreadyStarted() ? AlreadyStarted : DefaultContext;
|
| + return new HTMLScriptElement(document(), constructionContextFlags);
|
| }
|
|
|
| DEFINE_TRACE(HTMLScriptElement)
|
|
|