Stop flipping the ImageControlsButton
authorbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 2 May 2014 23:38:30 +0000 (23:38 +0000)
committerbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 2 May 2014 23:38:30 +0000 (23:38 +0000)
<rdar://problem/16773238> and https://bugs.webkit.org/show_bug.cgi?id=132502

Reviewed by Tim Horton.

* rendering/RenderThemeMac.mm:
(WebCore::RenderThemeMac::paintImageControlsButton):

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

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

index 3533801..38d2830 100644 (file)
@@ -1,3 +1,13 @@
+2014-05-02  Brady Eidson  <beidson@apple.com>
+
+        Stop flipping the ImageControlsButton
+        <rdar://problem/16773238> and https://bugs.webkit.org/show_bug.cgi?id=132502
+
+        Reviewed by Tim Horton.
+
+        * rendering/RenderThemeMac.mm:
+        (WebCore::RenderThemeMac::paintImageControlsButton):
+
 2014-05-02  Jeremy Jones  <jeremyj@apple.com>
 
         Fullscreen UI does not appear after WebProcess has crashed
index cce1abc..22218cf 100644 (file)
@@ -2037,8 +2037,7 @@ bool RenderThemeMac::paintImageControlsButton(const RenderObject& renderer, cons
     LocalCurrentGraphicsContext localContext(paintInfo.context);
     GraphicsContextStateSaver stateSaver(*paintInfo.context);
 
-    paintInfo.context->scale(FloatSize(1, -1));
-    paintInfo.context->translate(rect.x(), -rect.height() - rect.y());
+    paintInfo.context->translate(rect.x(), rect.y());
 
     IntRect innerFrame(IntPoint(), rect.size());
     [cell drawWithFrame:innerFrame inView:documentViewFor(renderer)];