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

Unified Diff: Source/core/html/HTMLTableRowElement.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/HTMLTableRowElement.h ('k') | Source/core/html/forms/ImageInputType.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLTableRowElement.cpp
diff --git a/Source/core/html/HTMLTableRowElement.cpp b/Source/core/html/HTMLTableRowElement.cpp
index 2938abbc628716045e0528215fa67efd8e895919..5dbf021877ad49c057b2b0dfb79df4c616536803 100644
--- a/Source/core/html/HTMLTableRowElement.cpp
+++ b/Source/core/html/HTMLTableRowElement.cpp
@@ -44,6 +44,11 @@ HTMLTableRowElement::HTMLTableRowElement(Document& document)
ScriptWrappable::init(this);
}
+bool HTMLTableRowElement::hasLegalLinkAttribute(const QualifiedName& name) const
+{
+ return name == backgroundAttr || HTMLTablePartElement::hasLegalLinkAttribute(name);
+}
+
PassRefPtr<HTMLTableRowElement> HTMLTableRowElement::create(Document& document)
{
return adoptRef(new HTMLTableRowElement(document));
« no previous file with comments | « Source/core/html/HTMLTableRowElement.h ('k') | Source/core/html/forms/ImageInputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698