Chromium Code Reviews| Index: Source/core/html/forms/CheckboxInputType.cpp |
| diff --git a/Source/core/html/forms/CheckboxInputType.cpp b/Source/core/html/forms/CheckboxInputType.cpp |
| index 738f9d58b9b0b15abb71a562058d9f40f5284f47..b751b08d24d62d11b2ffa16ae9d93f8d428b4f9b 100644 |
| --- a/Source/core/html/forms/CheckboxInputType.cpp |
| +++ b/Source/core/html/forms/CheckboxInputType.cpp |
| @@ -107,4 +107,9 @@ bool CheckboxInputType::supportsIndeterminateAppearance() const |
| return true; |
| } |
| +bool CheckboxInputType::shouldDispatchFormControlChangeEvent(String& oldValue, String& newValue) |
| +{ |
| + return (oldValue != newValue) ? true: false; |
|
keishi
2014/05/07 01:26:11
Couldn't this just be "oldValue != newValue"?
Habib Virji
2014/05/07 10:06:39
Done.
|
| +} |
| + |
| } // namespace WebCore |