Title: [106273] trunk/Source/WebCore
- Revision
- 106273
- Author
- [email protected]
- Date
- 2012-01-30 11:50:48 -0800 (Mon, 30 Jan 2012)
Log Message
Limit the shadow offset CG hack to just SL and Lion
https://bugs.webkit.org/show_bug.cgi?id=77348
<rdar://problem/10158016>
Reviewed by Chris Marrin.
No new tests, current tests cover this.
* platform/graphics/cg/GraphicsContextCG.cpp:
(WebCore::GraphicsContext::setPlatformShadow):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (106272 => 106273)
--- trunk/Source/WebCore/ChangeLog 2012-01-30 19:47:46 UTC (rev 106272)
+++ trunk/Source/WebCore/ChangeLog 2012-01-30 19:50:48 UTC (rev 106273)
@@ -1,3 +1,16 @@
+2012-01-28 Matthew Delaney <[email protected]>
+
+ Limit the shadow offset CG hack to just SL and Lion
+ https://bugs.webkit.org/show_bug.cgi?id=77348
+ <rdar://problem/10158016>
+
+ Reviewed by Chris Marrin.
+
+ No new tests, current tests cover this.
+
+ * platform/graphics/cg/GraphicsContextCG.cpp:
+ (WebCore::GraphicsContext::setPlatformShadow):
+
2012-01-30 Beth Dakin <[email protected]>
https://bugs.webkit.org/show_bug.cgi?id=77263
Modified: trunk/Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp (106272 => 106273)
--- trunk/Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp 2012-01-30 19:47:46 UTC (rev 106272)
+++ trunk/Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp 2012-01-30 19:50:48 UTC (rev 106273)
@@ -1036,6 +1036,7 @@
blurRadius = min(blurRadius, narrowPrecisionToCGFloat(1000.0));
+#if defined(BUILDING_ON_SNOW_LEOPARD) || defined(BUILDING_ON_LION)
if (!isAcceleratedContext()) {
// Work around <rdar://problem/5539388> by ensuring that the offsets will get truncated
// to the desired integer. Also see: <rdar://problem/10056277>
@@ -1050,6 +1051,7 @@
else if (yOffset < 0)
yOffset -= extraShadowOffset;
}
+#endif
// Check for an invalid color, as this means that the color was not set for the shadow
// and we should therefore just use the default shadow color.
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes