Index: Source/core/html/HTMLInputElement.cpp |
diff --git a/Source/core/html/HTMLInputElement.cpp b/Source/core/html/HTMLInputElement.cpp |
index b70898b443838f5b752f9d93d201db0039fe1d4f..95333c10aed44103b4d242db263540d476078c42 100644 |
--- a/Source/core/html/HTMLInputElement.cpp |
+++ b/Source/core/html/HTMLInputElement.cpp |
@@ -1501,7 +1501,7 @@ bool HTMLInputElement::hasValidDataListOptions() const |
HTMLDataListElement* dataList = this->dataList(); |
if (!dataList) |
return false; |
- RefPtr<HTMLCollection> options = dataList->options(); |
+ RefPtrWillBeRawPtr<HTMLCollection> options = dataList->options(); |
for (unsigned i = 0; HTMLOptionElement* option = toHTMLOptionElement(options->item(i)); ++i) { |
if (isValidValue(option->value())) |
return true; |
@@ -1836,7 +1836,7 @@ bool HTMLInputElement::setupDateTimeChooserParameters(DateTimeChooserParameters& |
parameters.doubleValue = m_inputType->valueAsDouble(); |
parameters.isAnchorElementRTL = computedStyle()->direction() == RTL; |
if (HTMLDataListElement* dataList = this->dataList()) { |
- RefPtr<HTMLCollection> options = dataList->options(); |
+ RefPtrWillBeRawPtr<HTMLCollection> options = dataList->options(); |
for (unsigned i = 0; HTMLOptionElement* option = toHTMLOptionElement(options->item(i)); ++i) { |
if (!isValidValue(option->value())) |
continue; |