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

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

Issue 1768913002: Dynamic updation of checked and selected attributes should reflect correct :default status (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated as per review comments Created 4 years, 9 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 93a646bba876e24c5f8eeb4b5cfc57c7751ae6b8..6e578bebba09203b38b073e0b71bf4cb2c3a7053 100644
--- a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
@@ -722,6 +722,8 @@ void HTMLInputElement::parseAttribute(const QualifiedName& name, const AtomicStr
setChecked(!value.isNull());
m_reflectsCheckedAttribute = true;
}
+ if (m_inputType->isCheckable())
tkent 2016/03/07 15:23:50 Please remove this |if|. We may call pseudoStateC
ramya.v 2016/03/08 03:22:06 Done.
+ pseudoStateChanged(CSSSelector::PseudoDefault);
} else if (name == maxlengthAttr) {
parseMaxLengthAttribute(value);
} else if (name == minlengthAttr) {

Powered by Google App Engine
This is Rietveld 408576698