Title: [140788] trunk/Source/WebCore
- Revision
- 140788
- Author
- [email protected]
- Date
- 2013-01-24 23:25:41 -0800 (Thu, 24 Jan 2013)
Log Message
INPUT_MULTIPLE_FIELDS_UI: Refactoring: Remove unused DateTimeHourFieldElement::valueAsInteger
https://bugs.webkit.org/show_bug.cgi?id=107915
Reviewed by Kentaro Hara.
DateTimeHourFieldElement::valueAsInteger is never called. Remove it and
make valueAsInteger non-public.
No new tests. This shouldn't change any behavior.
* html/shadow/DateTimeFieldElement.h:
(DateTimeFieldElement): Make valueAsInteger protected.
* html/shadow/DateTimeFieldElements.cpp:
Remove DateTimeHourFieldElement::valueAsInteger.
(WebCore::DateTimeHourFieldElement::populateDateTimeFieldsState):
Remove unnecessary DateTimeNumericFieldElement:: prefix.
* html/shadow/DateTimeFieldElements.h:
(DateTimeHourFieldElement): Remove valueAsInteger.
* html/shadow/DateTimeNumericFieldElement.h:
(DateTimeNumericFieldElement):
Make valueAsInteger FINAL.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (140787 => 140788)
--- trunk/Source/WebCore/ChangeLog 2013-01-25 07:08:23 UTC (rev 140787)
+++ trunk/Source/WebCore/ChangeLog 2013-01-25 07:25:41 UTC (rev 140788)
@@ -1,3 +1,27 @@
+2013-01-24 Kent Tamura <[email protected]>
+
+ INPUT_MULTIPLE_FIELDS_UI: Refactoring: Remove unused DateTimeHourFieldElement::valueAsInteger
+ https://bugs.webkit.org/show_bug.cgi?id=107915
+
+ Reviewed by Kentaro Hara.
+
+ DateTimeHourFieldElement::valueAsInteger is never called. Remove it and
+ make valueAsInteger non-public.
+
+ No new tests. This shouldn't change any behavior.
+
+ * html/shadow/DateTimeFieldElement.h:
+ (DateTimeFieldElement): Make valueAsInteger protected.
+ * html/shadow/DateTimeFieldElements.cpp:
+ Remove DateTimeHourFieldElement::valueAsInteger.
+ (WebCore::DateTimeHourFieldElement::populateDateTimeFieldsState):
+ Remove unnecessary DateTimeNumericFieldElement:: prefix.
+ * html/shadow/DateTimeFieldElements.h:
+ (DateTimeHourFieldElement): Remove valueAsInteger.
+ * html/shadow/DateTimeNumericFieldElement.h:
+ (DateTimeNumericFieldElement):
+ Make valueAsInteger FINAL.
+
2013-01-24 Hajime Morrita <[email protected]>
Refactoring: The name ContainerNode::removeChildren and ContainerNde::removeAllChilren() is confusing
Modified: trunk/Source/WebCore/html/shadow/DateTimeFieldElement.h (140787 => 140788)
--- trunk/Source/WebCore/html/shadow/DateTimeFieldElement.h 2013-01-25 07:08:23 UTC (rev 140787)
+++ trunk/Source/WebCore/html/shadow/DateTimeFieldElement.h 2013-01-25 07:25:41 UTC (rev 140788)
@@ -74,7 +74,6 @@
virtual void stepDown() = 0;
virtual void stepUp() = 0;
virtual String value() const = 0;
- virtual int valueAsInteger() const = 0;
virtual String visibleValue() const = 0;
protected:
@@ -89,6 +88,7 @@
virtual int maximum() const = 0;
virtual int minimum() const = 0;
void updateVisibleValue(EventBehavior);
+ virtual int valueAsInteger() const = 0;
private:
void defaultKeyboardEventHandler(KeyboardEvent*);
Modified: trunk/Source/WebCore/html/shadow/DateTimeFieldElements.cpp (140787 => 140788)
--- trunk/Source/WebCore/html/shadow/DateTimeFieldElements.cpp 2013-01-25 07:08:23 UTC (rev 140787)
+++ trunk/Source/WebCore/html/shadow/DateTimeFieldElements.cpp 2013-01-25 07:25:41 UTC (rev 140788)
@@ -139,7 +139,7 @@
return;
}
- const int value = DateTimeNumericFieldElement::valueAsInteger();
+ const int value = valueAsInteger();
switch (maximum()) {
case 11:
@@ -215,11 +215,6 @@
DateTimeNumericFieldElement::setValueAsInteger(range().minimum && !value ? m_alignment : value, eventBehavior);
}
-int DateTimeHourFieldElement::valueAsInteger() const
-{
- return hasValue() ? DateTimeNumericFieldElement::valueAsInteger() % m_alignment : -1;
-}
-
// ----------------------------
DateTimeMillisecondFieldElement::DateTimeMillisecondFieldElement(Document* document, FieldOwner& fieldOwner, const DateTimeNumericFieldElement::Parameters& parameters)
Modified: trunk/Source/WebCore/html/shadow/DateTimeFieldElements.h (140787 => 140788)
--- trunk/Source/WebCore/html/shadow/DateTimeFieldElements.h 2013-01-25 07:08:23 UTC (rev 140787)
+++ trunk/Source/WebCore/html/shadow/DateTimeFieldElements.h 2013-01-25 07:25:41 UTC (rev 140788)
@@ -85,7 +85,6 @@
virtual void setValueAsDate(const DateComponents&) OVERRIDE FINAL;
virtual void setValueAsDateTimeFieldsState(const DateTimeFieldsState&) OVERRIDE FINAL;
virtual void setValueAsInteger(int, EventBehavior = DispatchNoEvent) OVERRIDE FINAL;
- virtual int valueAsInteger() const OVERRIDE FINAL;
const int m_alignment;
};
Modified: trunk/Source/WebCore/html/shadow/DateTimeNumericFieldElement.h (140787 => 140788)
--- trunk/Source/WebCore/html/shadow/DateTimeNumericFieldElement.h 2013-01-25 07:08:23 UTC (rev 140787)
+++ trunk/Source/WebCore/html/shadow/DateTimeNumericFieldElement.h 2013-01-25 07:25:41 UTC (rev 140788)
@@ -71,7 +71,7 @@
virtual int maximum() const OVERRIDE FINAL;
virtual void setEmptyValue(EventBehavior = DispatchNoEvent) OVERRIDE FINAL;
virtual void setValueAsInteger(int, EventBehavior = DispatchNoEvent) OVERRIDE;
- virtual int valueAsInteger() const OVERRIDE;
+ virtual int valueAsInteger() const OVERRIDE FINAL;
virtual String visibleValue() const OVERRIDE FINAL;
private:
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes