Chromium Code Reviews| Index: Source/core/html/ColorInputType.cpp |
| diff --git a/Source/core/html/ColorInputType.cpp b/Source/core/html/ColorInputType.cpp |
| index 7cb6070c8aa176d87f8323982f3f529e2bfbea87..2f908c9ccb14e89080d1f1671f5e00d1cb5542ff 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); |
|
tkent
2013/05/21 21:05:44
Needs runtime flag check.
|
| -#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; |
| } |