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

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

Issue 202893002: Replace elementHasLegalLinkAttribute() helper with virtual function (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Take tkent's feedback into consideration 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
« no previous file with comments | « Source/core/html/HTMLModElement.h ('k') | Source/core/html/HTMLObjectElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLModElement.cpp
diff --git a/Source/core/html/HTMLModElement.cpp b/Source/core/html/HTMLModElement.cpp
index e609ef534995c47feb250334476f7abe6a964c5b..d1871db6ea669c01a7275144e4e7518cf4f0c184 100644
--- a/Source/core/html/HTMLModElement.cpp
+++ b/Source/core/html/HTMLModElement.cpp
@@ -45,4 +45,9 @@ bool HTMLModElement::isURLAttribute(const Attribute& attribute) const
return attribute.name() == citeAttr || HTMLElement::isURLAttribute(attribute);
}
+bool HTMLModElement::hasLegalLinkAttribute(const QualifiedName& name) const
+{
+ return name == citeAttr || HTMLElement::hasLegalLinkAttribute(name);
+}
+
}
« no previous file with comments | « Source/core/html/HTMLModElement.h ('k') | Source/core/html/HTMLObjectElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698