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

Unified Diff: Source/core/html/HTMLScriptElement.cpp

Issue 202633009: Add Element::subResourceAttributeName() virtual function (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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: Source/core/html/HTMLScriptElement.cpp
diff --git a/Source/core/html/HTMLScriptElement.cpp b/Source/core/html/HTMLScriptElement.cpp
index 4979f9e0612282461d384eed1b842c5e7bde0428..68ee9bcaaeddf93509ede58d8a87063b9a04b511 100644
--- a/Source/core/html/HTMLScriptElement.cpp
+++ b/Source/core/html/HTMLScriptElement.cpp
@@ -59,6 +59,11 @@ bool HTMLScriptElement::hasLegalLinkAttribute(const QualifiedName& name) const
return name == srcAttr || HTMLElement::hasLegalLinkAttribute(name);
}
+const QualifiedName* HTMLScriptElement::subResourceAttributeName() const
+{
+ return &srcAttr;
+}
+
void HTMLScriptElement::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta)
{
HTMLElement::childrenChanged(changedByParser, beforeChange, afterChange, childCountDelta);

Powered by Google App Engine
This is Rietveld 408576698