Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / html / forms / RangeInputType.cpp
index 3678a3f..5182587 100644 (file)
@@ -44,6 +44,7 @@
 #include "core/dom/TouchList.h"
 #include "core/dom/shadow/ShadowRoot.h"
 #include "core/html/HTMLDataListElement.h"
+#include "core/html/HTMLDataListOptionsCollection.h"
 #include "core/html/HTMLDivElement.h"
 #include "core/html/HTMLInputElement.h"
 #include "core/html/HTMLOptionElement.h"
@@ -89,11 +90,6 @@ void RangeInputType::countUsage()
     countUsageIfVisible(UseCounter::InputTypeRange);
 }
 
-bool RangeInputType::isRangeControl() const
-{
-    return true;
-}
-
 const AtomicString& RangeInputType::formControlType() const
 {
     return InputTypeNames::range;
@@ -346,11 +342,10 @@ void RangeInputType::updateTickMarkValues()
     HTMLDataListElement* dataList = element().dataList();
     if (!dataList)
         return;
-    RefPtrWillBeRawPtr<HTMLCollection> options = dataList->options();
+    RefPtrWillBeRawPtr<HTMLDataListOptionsCollection> options = dataList->options();
     m_tickMarkValues.reserveCapacity(options->length());
     for (unsigned i = 0; i < options->length(); ++i) {
-        Element* element = options->item(i);
-        HTMLOptionElement* optionElement = toHTMLOptionElement(element);
+        HTMLOptionElement* optionElement = options->item(i);
         String optionValue = optionElement->value();
         if (!this->element().isValidValue(optionValue))
             continue;