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

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

Issue 14859003: Remove the compile time flag for DATALIST Element. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add <datalist> display:none rule in RenderTheme::extraDefaultStyleSheet depending on the runtime fl… 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/RangeInputType.cpp
diff --git a/Source/core/html/RangeInputType.cpp b/Source/core/html/RangeInputType.cpp
index 14032a914795cd1b4a28159f2a4f40440235c4d1..aff432ba8b558a28580eee3888239498ef30a33b 100644
--- a/Source/core/html/RangeInputType.cpp
+++ b/Source/core/html/RangeInputType.cpp
@@ -55,11 +55,9 @@
#include <wtf/MathExtras.h>
#include <wtf/PassOwnPtr.h>
-#if ENABLE(DATALIST_ELEMENT)
#include "core/html/HTMLDataListElement.h"
tkent 2013/05/20 21:32:11 Please merge these #include to the above block.
#include "core/html/HTMLOptionElement.h"
#include <wtf/NonCopyingSort.h>
-#endif
namespace WebCore {
@@ -84,9 +82,7 @@ PassOwnPtr<InputType> RangeInputType::create(HTMLInputElement* element)
RangeInputType::RangeInputType(HTMLInputElement* element)
: InputType(element)
-#if ENABLE(DATALIST_ELEMENT)
, m_tickMarkValuesDirty(true)
-#endif
{
}
@@ -332,7 +328,6 @@ HTMLElement* RangeInputType::sliderTrackElement() const
return sliderTrackElementOf(element());
}
-#if ENABLE(DATALIST_ELEMENT)
void RangeInputType::listAttributeTargetChanged()
{
m_tickMarkValuesDirty = true;
@@ -401,6 +396,5 @@ Decimal RangeInputType::findClosestTickMarkValue(const Decimal& value)
return closestRight;
return closestLeft;
}
-#endif
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698