Index: Source/core/html/forms/ImageInputType.cpp |
diff --git a/Source/core/html/forms/ImageInputType.cpp b/Source/core/html/forms/ImageInputType.cpp |
index a8a8d5143ca878e3c8b23dc437467b856f2ea02d..efa6605e2fc510dabdae223957f5302bac6f9640 100644 |
--- a/Source/core/html/forms/ImageInputType.cpp |
+++ b/Source/core/html/forms/ImageInputType.cpp |
@@ -235,4 +235,9 @@ unsigned ImageInputType::width() const |
return box ? adjustForAbsoluteZoom(box->contentWidth(), box) : 0; |
} |
+bool ImageInputType::hasLegalLinkAttribute(const QualifiedName& name) const |
+{ |
+ return name == srcAttr || BaseButtonInputType::hasLegalLinkAttribute(name); |
+} |
+ |
} // namespace WebCore |