Changeset 95207 in webkit
- Timestamp:
- Sep 15, 2011 12:00:42 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r95204 r95207 1 2011-09-15 Matthew Delaney <mdelaney@apple.com> 2 3 REGRESSION (Safari 5.1-r95043): Incorrect box-shadow offset 4 https://bugs.webkit.org/show_bug.cgi?id=68041 5 6 Reviewed by Dan Bernstein. 7 8 * fast/box-shadow/no-blur-multiple-offsets-expected.txt: Added. 9 * fast/box-shadow/no-blur-multiple-offsets.html: Added. 10 * platform/mac/fast/box-shadow/no-blur-multiple-offsets-expected.png: Added. 11 1 12 2011-09-15 James Simonsen <simonjam@chromium.org> 2 13 -
trunk/Source/WebCore/ChangeLog
r95204 r95207 1 2011-09-15 Matthew Delaney <mdelaney@apple.com> 2 3 REGRESSION (Safari 5.1-r95043): Incorrect box-shadow offset 4 https://bugs.webkit.org/show_bug.cgi?id=68041 5 6 Reviewed by Dan Bernstein. 7 8 Test: fast/box-shadow/no-blur-multiple-offsets.html 9 10 * platform/graphics/cg/GraphicsContextCG.cpp: 11 (WebCore::GraphicsContext::setPlatformShadow): Add hack back in for Lion if 12 context is not accelerated. 13 1 14 2011-09-15 James Simonsen <simonjam@chromium.org> 2 15 -
trunk/Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp
r94897 r95207 1025 1025 blurRadius = min(blurRadius, narrowPrecisionToCGFloat(1000.0)); 1026 1026 1027 #if defined(BUILDING_ON_LEOPARD) || defined(BUILDING_ON_SNOW_LEOPARD) 1028 // Work around <rdar://problem/5539388> by ensuring that the offsets will get truncated 1029 // to the desired integer. 1030 static const CGFloat extraShadowOffset = narrowPrecisionToCGFloat(1.0 / 128); 1031 if (xOffset > 0) 1032 xOffset += extraShadowOffset; 1033 else if (xOffset < 0) 1034 xOffset -= extraShadowOffset; 1035 1036 if (yOffset > 0) 1037 yOffset += extraShadowOffset; 1038 else if (yOffset < 0) 1039 yOffset -= extraShadowOffset; 1040 #endif 1027 1028 if (!isAcceleratedContext()) { 1029 // Work around <rdar://problem/5539388> by ensuring that the offsets will get truncated 1030 // to the desired integer. Also see: <rdar://problem/10056277> 1031 static const CGFloat extraShadowOffset = narrowPrecisionToCGFloat(1.0 / 128); 1032 if (xOffset > 0) 1033 xOffset += extraShadowOffset; 1034 else if (xOffset < 0) 1035 xOffset -= extraShadowOffset; 1036 1037 if (yOffset > 0) 1038 yOffset += extraShadowOffset; 1039 else if (yOffset < 0) 1040 yOffset -= extraShadowOffset; 1041 } 1041 1042 1042 1043 // Check for an invalid color, as this means that the color was not set for the shadow
Note: See TracChangeset
for help on using the changeset viewer.