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

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

Issue 1928443002: Remove element related checks for PseudoDisabled css class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/HTMLOptGroupElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLOptGroupElement.cpp b/third_party/WebKit/Source/core/html/HTMLOptGroupElement.cpp
index 09e3bd3a95c1747d75105bf2cac9ebfdae007eea..044d82c23c79033ba53b21ff4868b94e98a43b56 100644
--- a/third_party/WebKit/Source/core/html/HTMLOptGroupElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLOptGroupElement.cpp
@@ -111,6 +111,11 @@ bool HTMLOptGroupElement::matchesEnabledPseudoClass() const
return !isDisabledFormControl();
}
+bool HTMLOptGroupElement::matchesDisabledPseudoClass() const
+{
+ return isDisabledFormControl();
+}
+
void HTMLOptGroupElement::updateNonComputedStyle()
{
m_style = originalStyleForLayoutObject();

Powered by Google App Engine
This is Rietveld 408576698