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

Unified Diff: Source/core/rendering/RenderThemeChromiumMac.mm

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/rendering/RenderThemeChromiumMac.mm
diff --git a/Source/core/rendering/RenderThemeChromiumMac.mm b/Source/core/rendering/RenderThemeChromiumMac.mm
index 1a479e62ea0e2ff34524551c3e72a58805391632..3bfe00823113dab111907ca57441007969f26936 100644
--- a/Source/core/rendering/RenderThemeChromiumMac.mm
+++ b/Source/core/rendering/RenderThemeChromiumMac.mm
@@ -1422,9 +1422,7 @@ bool RenderThemeChromiumMac::paintSliderTrack(RenderObject* o, const PaintInfo&
CGContextRef context = localContext.cgContext();
CGColorSpaceRef cspace = deviceRGBColorSpaceRef();
-#if ENABLE(DATALIST_ELEMENT)
paintSliderTicks(o, paintInfo, r);
-#endif
GraphicsContextStateSaver stateSaver(*paintInfo.context);
CGContextClipToRect(context, bounds);
@@ -1719,7 +1717,6 @@ bool RenderThemeChromiumMac::paintSearchFieldResultsDecoration(RenderObject* o,
return false;
}
-#if ENABLE(DATALIST_ELEMENT)
IntSize RenderThemeChromiumMac::sliderTickSize() const
{
return IntSize(1, 3);
@@ -1729,7 +1726,6 @@ int RenderThemeChromiumMac::sliderTickOffsetFromTrackCenter() const
{
return -9;
}
-#endif
const int sliderThumbWidth = 15;
const int sliderThumbHeight = 15;
@@ -1931,12 +1927,10 @@ String RenderThemeChromiumMac::extraDefaultStyleSheet()
String(themeChromiumUserAgentStyleSheet, sizeof(themeChromiumUserAgentStyleSheet));
}
-#if ENABLE(DATALIST_ELEMENT)
LayoutUnit RenderThemeChromiumMac::sliderTickSnappingThreshold() const
{
return RenderThemeChromiumCommon::sliderTickSnappingThreshold();
}
-#endif
#if ENABLE(INPUT_MULTIPLE_FIELDS_UI) && ENABLE(CALENDAR_PICKER)
bool RenderThemeChromiumMac::supportsCalendarPicker(const AtomicString& type) const

Powered by Google App Engine
This is Rietveld 408576698