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..24506a5c5f8bbd519bc01ea14a2e58a41bdc346c 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? |
tkent
2016/04/27 04:40:43
The answer to esprehn's question is NO. So we don
ramya.v
2016/04/27 05:41:35
Thanks :)
Done.
|
- if (element.isFormControlElement() || isHTMLOptionElement(element) || isHTMLOptGroupElement(element)) |
- return element.isDisabledFormControl(); |
- break; |
+ return element.matchesDisabledPseudoClass(); |
case CSSSelector::PseudoReadOnly: |
return element.matchesReadOnlyPseudoClass(); |
case CSSSelector::PseudoReadWrite: |