| 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 1e3cf9fb3148968f90afeaf2ccecffffa97941c8..8243c7a680b6d6b369f3da3fd041a4ef58e61347 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
|
| @@ -696,7 +696,7 @@ void HTMLInputElement::parseAttribute(const QualifiedName& name, const AtomicStr
|
| // restore. We shouldn't call setChecked() even if this has the checked
|
| // attribute. So, delay the setChecked() call until
|
| // finishParsingChildren() is called if parsing is in progress.
|
| - if (!m_parsingInProgress && !m_dirtyCheckedness) {
|
| + if ((!m_parsingInProgress || !document().formController().hasFormStates()) && !m_dirtyCheckedness) {
|
| setChecked(!value.isNull());
|
| m_dirtyCheckedness = false;
|
| }
|
|
|