Index: third_party/WebKit/Source/core/html/HTMLInputElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp |
index 5b0c88c1637ab1d087f0011daee466c585d87bde..50c7fb0b756e083259fb66ab08ea66073696cb02 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp |
@@ -1655,6 +1655,13 @@ bool HTMLInputElement::supportLabels() const |
return m_inputType->isInteractiveContent(); |
} |
+bool HTMLInputElement::isDefaultButtonForForm() const |
+{ |
+ if (fastHasAttribute(checkedAttr)) |
tkent
2016/03/03 13:29:08
The specification says "input elements to which th
ramya.v
2016/03/04 06:31:45
Done.
|
+ return true; |
+ return HTMLFormControlElement::isDefaultButtonForForm(); |
+} |
+ |
bool HTMLInputElement::shouldAppearChecked() const |
{ |
return checked() && m_inputType->isCheckable(); |