Changeset 136091 in webkit
- Timestamp:
- Nov 28, 2012, 9:20:54 PM (13 years ago)
- Location:
- branches/chromium/1312
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/chromium/1312/LayoutTests/platform/chromium/TestExpectations
r134985 r136091 2792 2792 webkit.org/b/98906 platform/chromium/fast/forms/suggestion-picker/date-suggestion-picker-mouse-operations.html [ Pass Failure ] 2793 2793 2794 webkit.org/b/103350 fast/forms/date/date-appearance-pseudo-classes.html [ Pass ImageOnlyFailure ] 2795 webkit.org/b/103350 fast/forms/month/month-appearance-pseudo-classes.html [ Pass ImageOnlyFailure ] 2796 webkit.org/b/103350 fast/forms/time/time-appearance-pseudo-classes.html [ Pass ImageOnlyFailure ] 2797 webkit.org/b/103350 fast/forms/week/week-appearance-pseudo-classes.html [ Pass ImageOnlyFailure ] 2798 2794 2799 # New test added in r87324 2795 2800 crbug.com/83994 [ Win ] platform/win/plugins/call-javascript-that-destroys-plugin.html [ Failure ] -
branches/chromium/1312/Source/WebCore/css/SelectorChecker.cpp
r132754 r136091 1046 1046 break; 1047 1047 case CSSSelector::PseudoReadOnly: 1048 if (!element || !element->isFormControlElement()) 1049 return false; 1050 return element->isTextFormControl() && element->shouldMatchReadOnlySelector(); 1048 return element && element->shouldMatchReadOnlySelector(); 1051 1049 case CSSSelector::PseudoReadWrite: 1052 if (!element || !element->isFormControlElement()) 1053 return false; 1054 return element->isTextFormControl() && element->shouldMatchReadWriteSelector(); 1050 return element && element->shouldMatchReadWriteSelector(); 1055 1051 case CSSSelector::PseudoOptional: 1056 1052 return element && element->isOptionalFormControl(); -
branches/chromium/1312/Source/WebCore/html/BaseDateAndTimeInputType.cpp
r132774 r136091 183 183 } 184 184 185 bool BaseDateAndTimeInputType::supportsReadOnly() const 186 { 187 return true; 188 } 189 185 190 } // namespace WebCore -
branches/chromium/1312/Source/WebCore/html/BaseDateAndTimeInputType.h
r130835 r136091 65 65 virtual String visibleValue() const OVERRIDE; 66 66 virtual String convertFromVisibleValue(const String&) const OVERRIDE; 67 virtual bool supportsReadOnly() const OVERRIDE; 67 68 }; 68 69 -
branches/chromium/1312/Source/WebCore/html/HTMLFormControlElement.cpp
r131572 r136091 459 459 } 460 460 461 bool HTMLFormControlElement::shouldMatchReadOnlySelector() const462 {463 return readOnly();464 }465 466 bool HTMLFormControlElement::shouldMatchReadWriteSelector() const467 {468 return !readOnly();469 }470 471 461 bool HTMLFormControlElement::validationMessageShadowTreeContains(Node* node) const 472 462 { -
branches/chromium/1312/Source/WebCore/html/HTMLFormControlElement.h
r128254 r136091 82 82 virtual const AtomicString& formControlType() const OVERRIDE = 0; 83 83 virtual bool isEnabledFormControl() const { return !disabled(); } 84 virtual bool shouldMatchReadOnlySelector() const OVERRIDE;85 virtual bool shouldMatchReadWriteSelector() const OVERRIDE;86 84 87 85 virtual bool canTriggerImplicitSubmission() const { return false; } -
branches/chromium/1312/Source/WebCore/html/HTMLInputElement.cpp
r134269 r136091 1469 1469 } 1470 1470 1471 bool HTMLInputElement::shouldMatchReadOnlySelector() const 1472 { 1473 return m_inputType->supportsReadOnly() && readOnly(); 1474 } 1475 1476 bool HTMLInputElement::shouldMatchReadWriteSelector() const 1477 { 1478 return m_inputType->supportsReadOnly() && !readOnly(); 1479 } 1480 1471 1481 void HTMLInputElement::addSearchResult() 1472 1482 { -
branches/chromium/1312/Source/WebCore/html/HTMLInputElement.h
r132599 r136091 289 289 static Vector<FileChooserFileInfo> filesFromFileInputFormControlState(const FormControlState&); 290 290 291 virtual bool shouldMatchReadOnlySelector() const OVERRIDE; 292 virtual bool shouldMatchReadWriteSelector() const OVERRIDE; 291 293 virtual void setRangeText(const String& replacement, ExceptionCode&) OVERRIDE; 292 294 virtual void setRangeText(const String& replacement, unsigned start, unsigned end, const String& selectionMode, ExceptionCode&) OVERRIDE; -
branches/chromium/1312/Source/WebCore/html/HTMLTextAreaElement.cpp
r130818 r136091 530 530 } 531 531 532 bool HTMLTextAreaElement::shouldMatchReadOnlySelector() const 533 { 534 return readOnly(); 535 } 536 537 bool HTMLTextAreaElement::shouldMatchReadWriteSelector() const 538 { 539 return !readOnly(); 540 } 541 532 542 void HTMLTextAreaElement::updatePlaceholderText() 533 543 { -
branches/chromium/1312/Source/WebCore/html/HTMLTextAreaElement.h
r128856 r136091 113 113 virtual bool shouldUseInputMethod(); 114 114 virtual void attach() OVERRIDE; 115 virtual bool shouldMatchReadOnlySelector() const OVERRIDE; 116 virtual bool shouldMatchReadWriteSelector() const OVERRIDE; 115 117 116 118 bool valueMissing(const String& value) const { return isRequiredFormControl() && !disabled() && !readOnly() && value.isEmpty(); } -
branches/chromium/1312/Source/WebCore/html/InputType.cpp
r131969 r136091 882 882 } 883 883 884 bool InputType::supportsReadOnly() const 885 { 886 return false; 887 } 888 884 889 void InputType::updateInnerTextValue() 885 890 { -
branches/chromium/1312/Source/WebCore/html/InputType.h
r131969 r136091 277 277 virtual bool usesFixedPlaceholder() const; 278 278 virtual String fixedPlaceholder(); 279 virtual bool supportsReadOnly() const; 279 280 virtual void updateInnerTextValue(); 280 281 virtual void updatePlaceholderText(); -
branches/chromium/1312/Source/WebCore/html/TextFieldInputType.cpp
r134459 r136091 330 330 } 331 331 332 bool TextFieldInputType::supportsReadOnly() const 333 { 334 return true; 335 } 336 332 337 bool TextFieldInputType::shouldUseInputMethod() const 333 338 { -
branches/chromium/1312/Source/WebCore/html/TextFieldInputType.h
r132291 r136091 65 65 virtual void disabledAttributeChanged() OVERRIDE; 66 66 virtual void readonlyAttributeChanged() OVERRIDE; 67 virtual bool supportsReadOnly() const OVERRIDE; 67 68 virtual void handleBlurEvent() OVERRIDE; 68 69 virtual void updateInnerTextValue() OVERRIDE;
Note:
See TracChangeset
for help on using the changeset viewer.