Fix a slider thumb rendering regression in Chromium on OS X in r98520.
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 27 Oct 2011 00:29:32 +0000 (00:29 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 27 Oct 2011 00:29:32 +0000 (00:29 +0000)
Reviewed by Anders Carlsson.

* rendering/RenderThemeMac.mm:
(WebCore::RenderThemeMac::paintSliderThumb): Reverted the changes to the Chromium code path.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@98529 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderThemeMac.mm

index 33f20c199ada66d0d6534aa311868b91ac01f220..cecab9166795f366b814a36e103e74e8174da72c 100644 (file)
@@ -1,3 +1,12 @@
+2011-10-26  Dan Bernstein  <mitz@apple.com>
+
+        Fix a slider thumb rendering regression in Chromium on OS X in r98520.
+
+        Reviewed by Anders Carlsson.
+
+        * rendering/RenderThemeMac.mm:
+        (WebCore::RenderThemeMac::paintSliderThumb): Reverted the changes to the Chromium code path.
+
 2011-10-26  Julien Chaffraix  <jchaffraix@webkit.org>
 
         Unreviewed, rolling out r98486.
index 6999a3a10b67ea915ab3906cdc796346d2fbfb8b..1d52b8a6bce8a1711f680ef8631cbae021f89121 100644 (file)
@@ -1395,6 +1395,12 @@ bool RenderThemeMac::paintSliderThumb(RenderObject* o, const PaintInfo& paintInf
         paintInfo.context->translate(-unzoomedRect.x(), -unzoomedRect.y());
     }
 
+#if PLATFORM(CHROMIUM)
+    paintInfo.context->translate(0, unzoomedRect.y());
+    paintInfo.context->scale(FloatSize(1, -1));
+    paintInfo.context->translate(0, -(unzoomedRect.y() + unzoomedRect.height()));
+#endif
+
     [sliderThumbCell drawInteriorWithFrame:unzoomedRect inView:documentViewFor(o)];
     [sliderThumbCell setControlView:nil];