Commit 36e68b5a authored by mdelaney@apple.com's avatar mdelaney@apple.com

Remove offset hack from GraphicsContextCG setShadow code

https://bugs.webkit.org/show_bug.cgi?id=67052

Reviewed by Simon Fraser.

No new tests - current tests cover it.

* platform/graphics/cg/GraphicsContextCG.cpp:
Removing the offset hack introduced in http://trac.webkit.org/changeset/28714
for an issue with offsets in an old version of CoreGraphics that's long since been fixed.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@93919 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent d6bcd37d
2011-08-26 Matthew Delaney <mdelaney@apple.com>
Remove offset hack from GraphicsContextCG setShadow code
https://bugs.webkit.org/show_bug.cgi?id=67052
Reviewed by Simon Fraser.
No new tests - current tests cover it.
* platform/graphics/cg/GraphicsContextCG.cpp:
Removing the offset hack introduced in http://trac.webkit.org/changeset/28714
for an issue with offsets in an old version of CoreGraphics that's long since been fixed.
2011-08-26 Alexey Proskuryakov <ap@apple.com>
Get rid of frame life support timer
......@@ -1021,19 +1021,6 @@ void GraphicsContext::setPlatformShadow(const FloatSize& offset, float blur, con
// Extreme "blur" values can make text drawing crash or take crazy long times, so clamp
blurRadius = min(blurRadius, narrowPrecisionToCGFloat(1000.0));
// Work around <rdar://problem/5539388> by ensuring that the offsets will get truncated
// to the desired integer.
static const CGFloat extraShadowOffset = narrowPrecisionToCGFloat(1.0 / 128);
if (xOffset > 0)
xOffset += extraShadowOffset;
else if (xOffset < 0)
xOffset -= extraShadowOffset;
if (yOffset > 0)
yOffset += extraShadowOffset;
else if (yOffset < 0)
yOffset -= extraShadowOffset;
// 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.
if (!color.isValid())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment