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

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: 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
« no previous file with comments | « Source/core/html/RangeInputType.h ('k') | Source/core/html/shadow/SliderThumbElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/RangeInputType.cpp
diff --git a/Source/core/html/RangeInputType.cpp b/Source/core/html/RangeInputType.cpp
index 14032a914795cd1b4a28159f2a4f40440235c4d1..dd700da3bd9d92f8d2e64a9ac3f26aa884d6c534 100644
--- a/Source/core/html/RangeInputType.cpp
+++ b/Source/core/html/RangeInputType.cpp
@@ -44,22 +44,19 @@
#include "core/dom/TouchList.h"
#include "core/dom/shadow/ElementShadow.h"
#include "core/dom/shadow/ShadowRoot.h"
+#include "core/html/HTMLDataListElement.h"
#include "core/html/HTMLDivElement.h"
#include "core/html/HTMLInputElement.h"
+#include "core/html/HTMLOptionElement.h"
#include "core/html/InputTypeNames.h"
#include "core/html/StepRange.h"
#include "core/html/parser/HTMLParserIdioms.h"
#include "core/html/shadow/SliderThumbElement.h"
#include "core/platform/PlatformMouseEvent.h"
#include "core/rendering/RenderSlider.h"
-#include <wtf/MathExtras.h>
-#include <wtf/PassOwnPtr.h>
-
-#if ENABLE(DATALIST_ELEMENT)
-#include "core/html/HTMLDataListElement.h"
-#include "core/html/HTMLOptionElement.h"
-#include <wtf/NonCopyingSort.h>
-#endif
+#include "wtf/MathExtras.h"
+#include "wtf/NonCopyingSort.h"
+#include "wtf/PassOwnPtr.h"
namespace WebCore {
@@ -84,9 +81,7 @@ PassOwnPtr<InputType> RangeInputType::create(HTMLInputElement* element)
RangeInputType::RangeInputType(HTMLInputElement* element)
: InputType(element)
-#if ENABLE(DATALIST_ELEMENT)
, m_tickMarkValuesDirty(true)
-#endif
{
}
@@ -332,7 +327,6 @@ HTMLElement* RangeInputType::sliderTrackElement() const
return sliderTrackElementOf(element());
}
-#if ENABLE(DATALIST_ELEMENT)
void RangeInputType::listAttributeTargetChanged()
{
m_tickMarkValuesDirty = true;
@@ -401,6 +395,5 @@ Decimal RangeInputType::findClosestTickMarkValue(const Decimal& value)
return closestRight;
return closestLeft;
}
-#endif
} // namespace WebCore
« no previous file with comments | « Source/core/html/RangeInputType.h ('k') | Source/core/html/shadow/SliderThumbElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698