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

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: incorporate tkent's comments Created 7 years, 7 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 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;
}

Powered by Google App Engine
This is Rietveld 408576698