Index: third_party/WebKit/Source/core/css/SelectorChecker.cpp |
diff --git a/third_party/WebKit/Source/core/css/SelectorChecker.cpp b/third_party/WebKit/Source/core/css/SelectorChecker.cpp |
index 5cc7f0fcfee067de6833d291f67f2f2dec7c83ea..3416c2386789fce0db221a12c9e35cd4d44c2431 100644 |
--- a/third_party/WebKit/Source/core/css/SelectorChecker.cpp |
+++ b/third_party/WebKit/Source/core/css/SelectorChecker.cpp |
@@ -829,11 +829,7 @@ bool SelectorChecker::checkPseudoClass(const SelectorCheckingContext& context, M |
case CSSSelector::PseudoDefault: |
return element.matchesDefaultPseudoClass(); |
case CSSSelector::PseudoDisabled: |
- // TODO(esprehn): Why not just always return isDisabledFormControl()? |
- // Can it be true for elements not in the list below? |
- if (element.isFormControlElement() || isHTMLOptionElement(element) || isHTMLOptGroupElement(element)) |
- return element.isDisabledFormControl(); |
- break; |
+ return element.isDisabledFormControl(); |
case CSSSelector::PseudoReadOnly: |
return element.matchesReadOnlyPseudoClass(); |
case CSSSelector::PseudoReadWrite: |