Chromium Code Reviews| Index: Source/core/html/HTMLInputElement.cpp |
| diff --git a/Source/core/html/HTMLInputElement.cpp b/Source/core/html/HTMLInputElement.cpp |
| index 233384b9aad6835862fb4ed61aec4d26020f65d2..95af2adf36878e885200047594c61c1c25847e8f 100644 |
| --- a/Source/core/html/HTMLInputElement.cpp |
| +++ b/Source/core/html/HTMLInputElement.cpp |
| @@ -1701,7 +1701,7 @@ String HTMLInputElement::defaultToolTip() const |
| bool HTMLInputElement::shouldAppearIndeterminate() const |
| { |
| - return m_inputType->supportsIndeterminateAppearance() && indeterminate(); |
| + return m_inputType->shouldAppearIndeterminate(); |
| } |
| bool HTMLInputElement::isInRequiredRadioButtonGroup() |
| @@ -1712,8 +1712,10 @@ bool HTMLInputElement::isInRequiredRadioButtonGroup() |
| return false; |
| } |
| -HTMLInputElement* HTMLInputElement::checkedRadioButtonForGroup() const |
| +HTMLInputElement* HTMLInputElement::checkedRadioButtonForGroup() |
| { |
| + if (checked()) |
| + return this; |
|
tkent
2014/07/15 01:31:50
This changes a behavior. For example,
- the input
keishi
2014/07/15 03:05:30
I think this is correct and the current behavior i
|
| if (RadioButtonGroupScope* scope = radioButtonGroupScope()) |
| return scope->checkedButtonForGroup(name()); |
| return 0; |