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

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

Issue 1914933003: output should not match to :enabled or :disabled pseudo classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated as per review comments Created 4 years, 8 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/HTMLFormControlElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp b/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
index bf9046170421b5fc82544e3a3c0b7dc67f232a37..38811ae664ed9b18819b9af653d3dec14be735c4 100644
--- a/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
@@ -368,6 +368,11 @@ bool HTMLFormControlElement::isDisabledFormControl() const
return m_ancestorDisabledState == AncestorDisabledStateDisabled;
}
+bool HTMLFormControlElement::matchesEnabledPseudoClass() const
+{
+ return !isDisabledFormControl();
+}
+
bool HTMLFormControlElement::isRequired() const
{
return fastHasAttribute(requiredAttr);

Powered by Google App Engine
This is Rietveld 408576698