Changeset 99395 in webkit
- Timestamp:
- Nov 6, 2011, 10:27:30 PM (15 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 13 edited
-
ChangeLog (modified) (1 diff)
-
html/BaseCheckableInputType.cpp (modified) (1 diff)
-
html/BaseCheckableInputType.h (modified) (1 diff)
-
html/ColorInputType.cpp (modified) (1 diff)
-
html/ColorInputType.h (modified) (1 diff)
-
html/InputType.cpp (modified) (1 diff)
-
html/InputType.h (modified) (1 diff)
-
html/RangeInputType.cpp (modified) (1 diff)
-
html/RangeInputType.h (modified) (1 diff)
-
html/ResetInputType.cpp (modified) (1 diff)
-
html/ResetInputType.h (modified) (1 diff)
-
html/SubmitInputType.cpp (modified) (1 diff)
-
html/SubmitInputType.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r99391 r99395 1 2011-11-06 Keishi Hattori <keishi@webkit.org> 2 3 InputType::fallbackValue and defaultValue should be const 4 https://bugs.webkit.org/show_bug.cgi?id=71641 5 6 Reviewed by Kent Tamura. 7 8 Changing InputType::fallbackValue and defaultValue to const. Also adding OVERRIDE. 9 10 * html/BaseCheckableInputType.cpp: 11 (WebCore::BaseCheckableInputType::fallbackValue): 12 * html/BaseCheckableInputType.h: 13 * html/ColorInputType.cpp: 14 (WebCore::ColorInputType::fallbackValue): 15 * html/ColorInputType.h: 16 * html/InputType.cpp: 17 (WebCore::InputType::fallbackValue): 18 (WebCore::InputType::defaultValue): 19 * html/InputType.h: 20 * html/RangeInputType.cpp: 21 (WebCore::RangeInputType::fallbackValue): 22 * html/RangeInputType.h: 23 * html/ResetInputType.cpp: 24 (WebCore::ResetInputType::defaultValue): 25 * html/ResetInputType.h: 26 * html/SubmitInputType.cpp: 27 (WebCore::SubmitInputType::defaultValue): 28 * html/SubmitInputType.h: 29 1 30 2011-11-06 Keishi Hattori <keishi@webkit.org> 2 31 -
trunk/Source/WebCore/html/BaseCheckableInputType.cpp
r95901 r99395 95 95 } 96 96 97 String BaseCheckableInputType::fallbackValue() 97 String BaseCheckableInputType::fallbackValue() const 98 98 { 99 99 return "on"; -
trunk/Source/WebCore/html/BaseCheckableInputType.h
r95901 r99395 49 49 virtual bool canSetStringValue() const; 50 50 virtual void accessKeyAction(bool sendToAnyElement); 51 virtual String fallbackValue() ;51 virtual String fallbackValue() const OVERRIDE; 52 52 virtual bool storesValueSeparateFromAttribute(); 53 53 virtual void setValue(const String&, bool, bool); -
trunk/Source/WebCore/html/ColorInputType.cpp
r99391 r99395 85 85 } 86 86 87 String ColorInputType::fallbackValue() 87 String ColorInputType::fallbackValue() const 88 88 { 89 89 return String("#000000"); -
trunk/Source/WebCore/html/ColorInputType.h
r99391 r99395 49 49 virtual const AtomicString& formControlType() const; 50 50 virtual bool supportsRequired() const; 51 virtual String fallbackValue() ;51 virtual String fallbackValue() const OVERRIDE; 52 52 virtual String sanitizeValue(const String&) const; 53 53 virtual Color valueAsColor() const; -
trunk/Source/WebCore/html/InputType.cpp
r98054 r99395 509 509 } 510 510 511 String InputType::fallbackValue() 511 String InputType::fallbackValue() const 512 512 { 513 513 return String(); 514 514 } 515 515 516 String InputType::defaultValue() 516 String InputType::defaultValue() const 517 517 { 518 518 return String(); -
trunk/Source/WebCore/html/InputType.h
r98054 r99395 122 122 123 123 virtual bool getTypeSpecificValue(String&); // Checked first, before internal storage or the value attribute. 124 virtual String fallbackValue() ; // Checked last, if both internal storage and value attribute are missing.125 virtual String defaultValue() ; // Checked after even fallbackValue, only when the valueWithDefault function is called.124 virtual String fallbackValue() const; // Checked last, if both internal storage and value attribute are missing. 125 virtual String defaultValue() const; // Checked after even fallbackValue, only when the valueWithDefault function is called. 126 126 virtual double valueAsDate() const; 127 127 virtual void setValueAsDate(double, ExceptionCode&) const; -
trunk/Source/WebCore/html/RangeInputType.cpp
r97351 r99395 296 296 } 297 297 298 String RangeInputType::fallbackValue() 298 String RangeInputType::fallbackValue() const 299 299 { 300 300 return serializeForNumberType(StepRange(element()).defaultValue()); -
trunk/Source/WebCore/html/RangeInputType.h
r97351 r99395 68 68 virtual void minOrMaxAttributeChanged(); 69 69 virtual void setValue(const String&, bool valueChanged, bool sendChangeEvent); 70 virtual String fallbackValue() ;70 virtual String fallbackValue() const OVERRIDE; 71 71 virtual String sanitizeValue(const String& proposedValue) const; 72 72 virtual bool shouldRespectListAttribute(); -
trunk/Source/WebCore/html/ResetInputType.cpp
r95901 r99395 64 64 } 65 65 66 String ResetInputType::defaultValue() 66 String ResetInputType::defaultValue() const 67 67 { 68 68 return resetButtonDefaultLabel(); -
trunk/Source/WebCore/html/ResetInputType.h
r95901 r99395 45 45 virtual bool supportsValidation() const; 46 46 virtual void handleDOMActivateEvent(Event*); 47 virtual String defaultValue() ;47 virtual String defaultValue() const OVERRIDE; 48 48 virtual bool isTextButton() const; 49 49 }; -
trunk/Source/WebCore/html/SubmitInputType.cpp
r95901 r99395 81 81 } 82 82 83 String SubmitInputType::defaultValue() 83 String SubmitInputType::defaultValue() const 84 84 { 85 85 return submitButtonDefaultLabel(); -
trunk/Source/WebCore/html/SubmitInputType.h
r95901 r99395 47 47 virtual void handleDOMActivateEvent(Event*); 48 48 virtual bool canBeSuccessfulSubmitButton(); 49 virtual String defaultValue() ;49 virtual String defaultValue() const OVERRIDE; 50 50 virtual bool isSubmitButton() const; 51 51 virtual bool isTextButton() const;
Note:
See TracChangeset
for help on using the changeset viewer.