Title: [104173] trunk/Source/WebCore
- Revision
- 104173
- Author
- [email protected]
- Date
- 2012-01-05 10:08:58 -0800 (Thu, 05 Jan 2012)
Log Message
[Skia Mac] Rounded bezel style button needs one more local graphics context to scale
https://bugs.webkit.org/show_bug.cgi?id=75623
http://code.google.com/p/chromium/issues/detail?id=108749
In paintButton(), the local context is set up first, and later the context is
scaled if there's a zoomFactor. Skia creates the CoreGraphics context to draw the
button into without that scale factor. To fix this, another local context is added
after the parameter context scale, before the button draw. The first local context
is still required to restore the parameter context state.
Reviewed by Stephen White.
* platform/chromium/ThemeChromiumMac.mm:
(WebCore::paintButton):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (104172 => 104173)
--- trunk/Source/WebCore/ChangeLog 2012-01-05 17:52:42 UTC (rev 104172)
+++ trunk/Source/WebCore/ChangeLog 2012-01-05 18:08:58 UTC (rev 104173)
@@ -1,3 +1,20 @@
+2012-01-05 Cary Clark <[email protected]>
+
+ [Skia Mac] Rounded bezel style button needs one more local graphics context to scale
+ https://bugs.webkit.org/show_bug.cgi?id=75623
+ http://code.google.com/p/chromium/issues/detail?id=108749
+
+ In paintButton(), the local context is set up first, and later the context is
+ scaled if there's a zoomFactor. Skia creates the CoreGraphics context to draw the
+ button into without that scale factor. To fix this, another local context is added
+ after the parameter context scale, before the button draw. The first local context
+ is still required to restore the parameter context state.
+
+ Reviewed by Stephen White.
+
+ * platform/chromium/ThemeChromiumMac.mm:
+ (WebCore::paintButton):
+
2012-01-05 Alexis Menard <[email protected]>
getComputedStyle for background is not implemented.
Modified: trunk/Source/WebCore/platform/chromium/ThemeChromiumMac.mm (104172 => 104173)
--- trunk/Source/WebCore/platform/chromium/ThemeChromiumMac.mm 2012-01-05 17:52:42 UTC (rev 104172)
+++ trunk/Source/WebCore/platform/chromium/ThemeChromiumMac.mm 2012-01-05 18:08:58 UTC (rev 104173)
@@ -595,6 +595,7 @@
}
{
+ LocalCurrentGraphicsContext localContext(context);
FocusIndicationFix::ScopedFixer fix;
[buttonCell drawWithFrame:NSRect(inflatedRect) inView:FlippedView()];
}
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes