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

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

Issue 202893002: Replace elementHasLegalLinkAttribute() helper with 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/HTMLQuoteElement.cpp
diff --git a/Source/core/html/HTMLQuoteElement.cpp b/Source/core/html/HTMLQuoteElement.cpp
index ff18c6006e451f703fe5165c164c4ba69b87cb24..c8b556e219336bcfef38df377314cc700d91a397 100644
--- a/Source/core/html/HTMLQuoteElement.cpp
+++ b/Source/core/html/HTMLQuoteElement.cpp
@@ -48,4 +48,9 @@ bool HTMLQuoteElement::isURLAttribute(const Attribute& attribute) const
return attribute.name() == citeAttr || HTMLElement::isURLAttribute(attribute);
}
+bool HTMLQuoteElement::hasLegalLinkAttribute(const QualifiedName& name) const
+{
+ return name == citeAttr || HTMLElement::hasLegalLinkAttribute(name);
+}
+
}

Powered by Google App Engine
This is Rietveld 408576698