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

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

Issue 1956453004: Explicitly set checkbox state should not be influenced by defaultState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated as per review comments Created 4 years, 7 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
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/forms/checkbox/checkbox-checked-state-affected-by-default-state.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 82dee5c3093090f07e209f6bcfafdb4c5f17249f..66964b1d31cb1258c171ee9951f0830ae097a3c1 100644
--- a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
@@ -899,10 +899,10 @@ bool HTMLInputElement::checked() const
void HTMLInputElement::setChecked(bool nowChecked, TextFieldEventBehavior eventBehavior)
{
+ m_reflectsCheckedAttribute = false;
if (checked() == nowChecked)
return;
- m_reflectsCheckedAttribute = false;
m_isChecked = nowChecked;
if (RadioButtonGroupScope* scope = radioButtonGroupScope())
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/forms/checkbox/checkbox-checked-state-affected-by-default-state.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698