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

Unified Diff: Source/WebCore/css/SelectorChecker.cpp

Issue 11415195: Merge 135829 - :read-only selector should match to date/time input types (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 years, 1 month 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
« no previous file with comments | « LayoutTests/platform/chromium/TestExpectations ('k') | Source/WebCore/html/BaseDateAndTimeInputType.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/css/SelectorChecker.cpp
===================================================================
--- Source/WebCore/css/SelectorChecker.cpp (revision 136089)
+++ Source/WebCore/css/SelectorChecker.cpp (working copy)
@@ -1045,13 +1045,9 @@
return !element->isEnabledFormControl();
break;
case CSSSelector::PseudoReadOnly:
- if (!element || !element->isFormControlElement())
- return false;
- return element->isTextFormControl() && element->shouldMatchReadOnlySelector();
+ return element && element->shouldMatchReadOnlySelector();
case CSSSelector::PseudoReadWrite:
- if (!element || !element->isFormControlElement())
- return false;
- return element->isTextFormControl() && element->shouldMatchReadWriteSelector();
+ return element && element->shouldMatchReadWriteSelector();
case CSSSelector::PseudoOptional:
return element && element->isOptionalFormControl();
case CSSSelector::PseudoRequired:
« no previous file with comments | « LayoutTests/platform/chromium/TestExpectations ('k') | Source/WebCore/html/BaseDateAndTimeInputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698