Allow drawing a slider thumb for any nodes.
[WebKit-https.git] / Source / WebCore / rendering / RenderThemeChromiumLinux.cpp
index 7af14c2..d39911b 100644 (file)
@@ -296,7 +296,7 @@ bool RenderThemeChromiumLinux::paintSliderThumb(RenderObject* o, const PaintInfo
 {
     PlatformBridge::ThemePaintExtraParams extraParams;
     extraParams.slider.vertical = o->style()->appearance() == SliderThumbVerticalPart;
-    extraParams.slider.inDrag = toRenderSlider(o->parent())->inDragMode();
+    extraParams.slider.inDrag = isPressed(o);
 
     PlatformBridge::paintThemePart(i.context, PlatformBridge::PartSliderThumb, getWebThemeState(this, o), rect, &extraParams);
     return false;