Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(796)

Unified Diff: Source/core/html/ColorInputType.cpp

Issue 14859003: Remove the compile time flag for DATALIST Element. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698