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

Unified Diff: Source/WebKit/chromium/src/WebInputElement.cpp

Issue 14859003: Remove the compile time flag for DATALIST Element. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebasing after r150849 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/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();
}
« no previous file with comments | « Source/WebKit/chromium/public/WebRuntimeFeatures.h ('k') | Source/WebKit/chromium/src/WebRuntimeFeatures.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698