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

Unified Diff: third_party/WebKit/Source/core/html/HTMLInputElement.cpp

Issue 1756483005: Option, checkbox and radio should support ':default' selector (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated as per review comments Created 4 years, 10 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
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();

Powered by Google App Engine
This is Rietveld 408576698