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

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..b7294bf01db4585ca18d9a0d1abc51c65878aef8 100644
--- a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
@@ -722,6 +722,7 @@ void HTMLInputElement::parseAttribute(const QualifiedName& name, const AtomicStr
setChecked(!value.isNull());
m_reflectsCheckedAttribute = true;
}
+ pseudoStateChanged(CSSSelector::PseudoDefault);
} else if (name == maxlengthAttr) {
parseMaxLengthAttribute(value);
} else if (name == minlengthAttr) {

Powered by Google App Engine
This is Rietveld 408576698