Changeset 140788 in webkit
- Timestamp:
- Jan 24, 2013 11:25:41 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r140784 r140788 1 2013-01-24 Kent Tamura <tkent@chromium.org> 2 3 INPUT_MULTIPLE_FIELDS_UI: Refactoring: Remove unused DateTimeHourFieldElement::valueAsInteger 4 https://bugs.webkit.org/show_bug.cgi?id=107915 5 6 Reviewed by Kentaro Hara. 7 8 DateTimeHourFieldElement::valueAsInteger is never called. Remove it and 9 make valueAsInteger non-public. 10 11 No new tests. This shouldn't change any behavior. 12 13 * html/shadow/DateTimeFieldElement.h: 14 (DateTimeFieldElement): Make valueAsInteger protected. 15 * html/shadow/DateTimeFieldElements.cpp: 16 Remove DateTimeHourFieldElement::valueAsInteger. 17 (WebCore::DateTimeHourFieldElement::populateDateTimeFieldsState): 18 Remove unnecessary DateTimeNumericFieldElement:: prefix. 19 * html/shadow/DateTimeFieldElements.h: 20 (DateTimeHourFieldElement): Remove valueAsInteger. 21 * html/shadow/DateTimeNumericFieldElement.h: 22 (DateTimeNumericFieldElement): 23 Make valueAsInteger FINAL. 24 1 25 2013-01-24 Hajime Morrita <morrita@google.com> 2 26 -
trunk/Source/WebCore/html/shadow/DateTimeFieldElement.h
r137275 r140788 75 75 virtual void stepUp() = 0; 76 76 virtual String value() const = 0; 77 virtual int valueAsInteger() const = 0;78 77 virtual String visibleValue() const = 0; 79 78 … … 90 89 virtual int minimum() const = 0; 91 90 void updateVisibleValue(EventBehavior); 91 virtual int valueAsInteger() const = 0; 92 92 93 93 private: -
trunk/Source/WebCore/html/shadow/DateTimeFieldElements.cpp
r139172 r140788 140 140 } 141 141 142 const int value = DateTimeNumericFieldElement::valueAsInteger();142 const int value = valueAsInteger(); 143 143 144 144 switch (maximum()) { … … 216 216 } 217 217 218 int DateTimeHourFieldElement::valueAsInteger() const219 {220 return hasValue() ? DateTimeNumericFieldElement::valueAsInteger() % m_alignment : -1;221 }222 223 218 // ---------------------------- 224 219 -
trunk/Source/WebCore/html/shadow/DateTimeFieldElements.h
r139172 r140788 86 86 virtual void setValueAsDateTimeFieldsState(const DateTimeFieldsState&) OVERRIDE FINAL; 87 87 virtual void setValueAsInteger(int, EventBehavior = DispatchNoEvent) OVERRIDE FINAL; 88 virtual int valueAsInteger() const OVERRIDE FINAL;89 88 90 89 const int m_alignment; -
trunk/Source/WebCore/html/shadow/DateTimeNumericFieldElement.h
r138365 r140788 72 72 virtual void setEmptyValue(EventBehavior = DispatchNoEvent) OVERRIDE FINAL; 73 73 virtual void setValueAsInteger(int, EventBehavior = DispatchNoEvent) OVERRIDE; 74 virtual int valueAsInteger() const OVERRIDE ;74 virtual int valueAsInteger() const OVERRIDE FINAL; 75 75 virtual String visibleValue() const OVERRIDE FINAL; 76 76
Note: See TracChangeset
for help on using the changeset viewer.