2009-06-04 Eric Carlson <eric.carlson@apple.com>
[WebKit-https.git] / WebCore / rendering / RenderMediaControls.cpp
index 2b0b816..f1ff55f 100644 (file)
@@ -76,8 +76,9 @@ void RenderMediaControls::adjustMediaSliderThumbSize(RenderObject* o)
     if (o->style()->appearance() != MediaSliderThumbPart)
         return;
 
-    o->style()->setWidth(Length(mediaSliderThumbWidth, Fixed));
-    o->style()->setHeight(Length(mediaSliderThumbHeight, Fixed));
+    float zoomLevel = o->style()->effectiveZoom();
+    o->style()->setWidth(Length(static_cast<int>(mediaSliderThumbWidth * zoomLevel), Fixed));
+    o->style()->setHeight(Length(static_cast<int>(mediaSliderThumbHeight * zoomLevel), Fixed));
 }
 
 static HTMLMediaElement* parentMediaElement(RenderObject* o)