Index: third_party/WebKit/Source/core/html/HTMLButtonElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLButtonElement.cpp b/third_party/WebKit/Source/core/html/HTMLButtonElement.cpp |
index f9c89becb2af0466fcb39bb3821d4d51c8a8802c..fa275c012ede22880ff0db29c4e3f4954e0ec183 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLButtonElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLButtonElement.cpp |
@@ -214,6 +214,11 @@ bool HTMLButtonElement::supportsAutofocus() const |
return true; |
} |
+bool HTMLButtonElement::isDefaultButtonForForm() const |
+{ |
tkent
2016/03/04 06:39:14
Please copy the comment in HTMLFormControlElement:
ramya.v
2016/03/04 10:22:40
Done.
|
+ return canBeSuccessfulSubmitButton() && form() && form()->defaultButton() == this; |
+} |
+ |
Node::InsertionNotificationRequest HTMLButtonElement::insertedInto(ContainerNode* insertionPoint) |
{ |
InsertionNotificationRequest request = HTMLFormControlElement::insertedInto(insertionPoint); |