| Index: Source/WebKit/chromium/src/WebInputElement.cpp
|
| diff --git a/Source/WebKit/chromium/src/WebInputElement.cpp b/Source/WebKit/chromium/src/WebInputElement.cpp
|
| index 9b028095b2042d6032bb19c4cfa1618f26213065..ed8b8b3cec35cf7f6e55e1eb6ae2f03e6e3e4164 100644
|
| --- a/Source/WebKit/chromium/src/WebInputElement.cpp
|
| +++ b/Source/WebKit/chromium/src/WebInputElement.cpp
|
| @@ -32,6 +32,7 @@
|
| #include "WebInputElement.h"
|
|
|
| #include "HTMLNames.h"
|
| +#include "RuntimeEnabledFeatures.h"
|
| #include "TextFieldDecoratorImpl.h"
|
| #include "WebNodeCollection.h"
|
| #include "WebTextFieldDecoratorClient.h"
|
| @@ -190,11 +191,11 @@ bool WebInputElement::isMultiple() const
|
|
|
| WebNodeCollection WebInputElement::dataListOptions() const
|
| {
|
| -#if ENABLE(DATALIST_ELEMENT)
|
| - HTMLDataListElement* dataList = static_cast<HTMLDataListElement*>(constUnwrap<HTMLInputElement>()->list());
|
| - if (dataList)
|
| - return WebNodeCollection(dataList->options());
|
| -#endif
|
| + if (RuntimeEnabledFeatures::dataListElementEnabled()) {
|
| + HTMLDataListElement* dataList = static_cast<HTMLDataListElement*>(constUnwrap<HTMLInputElement>()->list());
|
| + if (dataList)
|
| + return WebNodeCollection(dataList->options());
|
| + }
|
| return WebNodeCollection();
|
| }
|
|
|
|
|