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

Unified Diff: Source/core/rendering/RenderTheme.cpp

Issue 194273004: Check if input element is a range control before painting slider ticks (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/RenderTheme.cpp
diff --git a/Source/core/rendering/RenderTheme.cpp b/Source/core/rendering/RenderTheme.cpp
index d7aa06f9ecdf21f317589ff4cc357d998de3340f..5c427b93021b57137e39d1e21ae7b1f8a55a5f9a 100644
--- a/Source/core/rendering/RenderTheme.cpp
+++ b/Source/core/rendering/RenderTheme.cpp
@@ -868,6 +868,9 @@ void RenderTheme::paintSliderTicks(RenderObject* o, const PaintInfo& paintInfo,
return;
HTMLInputElement* input = toHTMLInputElement(node);
+ if (!input->isRangeControl())
+ return;
+
HTMLDataListElement* dataList = input->dataList();
if (!dataList)
return;

Powered by Google App Engine
This is Rietveld 408576698