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

Unified Diff: third_party/WebKit/Source/core/html/HTMLLinkElement.cpp

Issue 1670203002: Block HTML Imports from loading when inserted via innerHTML. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/HTMLLinkElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp b/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
index 137cd7f28260bb372ea04755cd5089b059b601c9..eeaa5f0e41919f2d15d7c858aae5425c32aa6241 100644
--- a/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
@@ -145,19 +145,20 @@ void HTMLLinkElement::parseSizesAttribute(const AtomicString& value, Vector<IntS
parseSizes(value.characters16(), value.length(), iconSizes);
}
-inline HTMLLinkElement::HTMLLinkElement(Document& document, bool createdByParser)
+inline HTMLLinkElement::HTMLLinkElement(Document& document, bool createdByParser, bool alreadyStarted)
: HTMLElement(linkTag, document)
, m_linkLoader(LinkLoader::create(this))
, m_sizes(DOMSettableTokenList::create(this))
, m_relList(RelList::create(this))
, m_createdByParser(createdByParser)
+ , m_alreadyStarted(alreadyStarted)
, m_isInShadowTree(false)
{
}
-PassRefPtrWillBeRawPtr<HTMLLinkElement> HTMLLinkElement::create(Document& document, bool createdByParser)
+PassRefPtrWillBeRawPtr<HTMLLinkElement> HTMLLinkElement::create(Document& document, bool createdByParser, bool alreadyStarted)
{
- return adoptRefWillBeNoop(new HTMLLinkElement(document, createdByParser));
+ return adoptRefWillBeNoop(new HTMLLinkElement(document, createdByParser, alreadyStarted));
}
HTMLLinkElement::~HTMLLinkElement()

Powered by Google App Engine
This is Rietveld 408576698