[webkit-changes] cvs commit: WebKit/WebCoreSupport.subproj
WebImageData.m
Adele
adele at opensource.apple.com
Wed Aug 17 11:27:40 PDT 2005
adele 05/08/17 11:27:40
Modified: . Tag: Safari-2-0-branch ChangeLog
WebCoreSupport.subproj Tag: Safari-2-0-branch WebImageData.m
Log:
Merged fix from TOT to Safari-2-0-branch
2005-08-16 Darin Adler <darin at apple.com>
Reviewed by Trey.
- improved fix for <rdar://problem/4211631>, tiled images tiled incorrectly when printing or
drawing offscreen
* WebCoreSupport.subproj/WebImageData.m: (-[WebImageData tileInRect:fromPoint:context:]):
Fix pattern phase origin to use the image tile origin, which is clearly right, rather than
the image rectangle, which isn't right, but often is the same.
Revision Changes Path
No revision
No revision
1.3118.4.47 +15 -0 WebKit/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /cvs/root/WebKit/ChangeLog,v
retrieving revision 1.3118.4.46
retrieving revision 1.3118.4.47
diff -u -r1.3118.4.46 -r1.3118.4.47
--- ChangeLog 17 Aug 2005 01:31:11 -0000 1.3118.4.46
+++ ChangeLog 17 Aug 2005 18:27:36 -0000 1.3118.4.47
@@ -1,3 +1,18 @@
+2005-08-17 Adele Peterson <adele at apple.com>
+
+ Merged fix from TOT to Safari-2-0-branch
+
+ 2005-08-16 Darin Adler <darin at apple.com>
+
+ Reviewed by Trey.
+
+ - improved fix for <rdar://problem/4211631>, tiled images tiled incorrectly when printing or
+ drawing offscreen
+
+ * WebCoreSupport.subproj/WebImageData.m: (-[WebImageData tileInRect:fromPoint:context:]):
+ Fix pattern phase origin to use the image tile origin, which is clearly right, rather than
+ the image rectangle, which isn't right, but often is the same.
+
2005-08-16 Adele Peterson <adele at apple.com>
Merged fix from TOT to Safari-2-0-branch
No revision
No revision
1.32.8.4 +2 -1 WebKit/WebCoreSupport.subproj/WebImageData.m
Index: WebImageData.m
===================================================================
RCS file: /cvs/root/WebKit/WebCoreSupport.subproj/WebImageData.m,v
retrieving revision 1.32.8.3
retrieving revision 1.32.8.4
diff -u -r1.32.8.3 -r1.32.8.4
--- WebImageData.m 16 Aug 2005 21:25:28 -0000 1.32.8.3
+++ WebImageData.m 17 Aug 2005 18:27:40 -0000 1.32.8.4
@@ -612,7 +612,8 @@
if (pattern) {
CGContextSaveGState (aContext);
- CGPoint transformedOrigin = CGPointApplyAffineTransform(rect.origin, CGContextGetCTM(aContext));
+ CGPoint tileOrigin = CGPointMake(oneTileRect.origin.x, oneTileRect.origin.y);
+ CGPoint transformedOrigin = CGPointApplyAffineTransform(tileOrigin, CGContextGetCTM(aContext));
CGContextSetPatternPhase(aContext, CGSizeMake(transformedOrigin.x, transformedOrigin.y));
CGColorSpaceRef patternSpace = CGColorSpaceCreatePattern(NULL);
More information about the webkit-changes
mailing list