| Index: Source/core/html/ColorInputType.cpp
|
| diff --git a/Source/core/html/ColorInputType.cpp b/Source/core/html/ColorInputType.cpp
|
| index bffe7782b97bd87e7e924c762ca3c09fc1cd8797..b67293223c35dc0e3cf6f28e1c6b08618609203a 100644
|
| --- a/Source/core/html/ColorInputType.cpp
|
| +++ b/Source/core/html/ColorInputType.cpp
|
| @@ -219,17 +219,12 @@ Color ColorInputType::currentColor()
|
|
|
| bool ColorInputType::shouldShowSuggestions() const
|
| {
|
| -#if ENABLE(DATALIST_ELEMENT)
|
| return element()->fastHasAttribute(listAttr);
|
| -#else
|
| - return false;
|
| -#endif
|
| }
|
|
|
| Vector<Color> ColorInputType::suggestions() const
|
| {
|
| Vector<Color> suggestions;
|
| -#if ENABLE(DATALIST_ELEMENT)
|
| HTMLDataListElement* dataList = element()->dataList();
|
| if (dataList) {
|
| RefPtr<HTMLCollection> options = dataList->options();
|
| @@ -242,7 +237,6 @@ Vector<Color> ColorInputType::suggestions() const
|
| suggestions.append(color);
|
| }
|
| }
|
| -#endif
|
| return suggestions;
|
| }
|
|
|
|
|