[webkit-changes] cvs commit: WebKit/WebCoreSupport.subproj WebImageData.m

Timothy thatcher at opensource.apple.com
Tue Oct 4 10:33:03 PDT 2005


thatcher    05/10/04 10:33:03

  Modified:    .        Tag: Safari-2-0-branch ChangeLog
               WebCoreSupport.subproj Tag: Safari-2-0-branch WebImageData.m
  Log:
  		Fix for <rdar://problem/4275275> Denver Regression: Drawing glitch
  		in the transparent dialog's cancel/ok button in the widget manager
  
  		Fixed by Beth Dakin.
          Reviewed by Darin.
  
          * WebCoreSupport.subproj/WebImageData.m:
          (-[WebImageData tileInRect:fromPoint:context:]): CG workaround
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.3118.4.73 +11 -0     WebKit/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /cvs/root/WebKit/ChangeLog,v
  retrieving revision 1.3118.4.72
  retrieving revision 1.3118.4.73
  diff -u -r1.3118.4.72 -r1.3118.4.73
  --- ChangeLog	4 Oct 2005 02:36:38 -0000	1.3118.4.72
  +++ ChangeLog	4 Oct 2005 17:32:54 -0000	1.3118.4.73
  @@ -1,3 +1,14 @@
  +2005-10-04  Timothy Hatcher  <timothy at apple.com>
  +
  +		Fix for <rdar://problem/4275275> Denver Regression: Drawing glitch
  +		in the transparent dialog's cancel/ok button in the widget manager
  +
  +		Fixed by Beth Dakin.
  +        Reviewed by Darin.
  +
  +        * WebCoreSupport.subproj/WebImageData.m:
  +        (-[WebImageData tileInRect:fromPoint:context:]): CG workaround
  +
   2005-09-29  Timothy Hatcher  <timothy at apple.com>
   
           Merged fix from TOT to Safari-2-0-branch
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.32.8.5  +8 -3      WebKit/WebCoreSupport.subproj/WebImageData.m
  
  Index: WebImageData.m
  ===================================================================
  RCS file: /cvs/root/WebKit/WebCoreSupport.subproj/WebImageData.m,v
  retrieving revision 1.32.8.4
  retrieving revision 1.32.8.5
  diff -u -r1.32.8.4 -r1.32.8.5
  --- WebImageData.m	17 Aug 2005 18:27:40 -0000	1.32.8.4
  +++ WebImageData.m	4 Oct 2005 17:33:03 -0000	1.32.8.5
  @@ -20,6 +20,8 @@
   
   #import <ImageIO/CGImageSourcePrivate.h>
   
  +#import <CoreGraphics/CGContextPrivate.h>
  +
   // Forward declarations of internal methods.
   @interface WebImageData (WebInternal)
   - (void)_commonTermination;
  @@ -613,9 +615,12 @@
               CGContextSaveGState (aContext);
   
               CGPoint tileOrigin = CGPointMake(oneTileRect.origin.x, oneTileRect.origin.y);
  -            CGPoint transformedOrigin = CGPointApplyAffineTransform(tileOrigin, CGContextGetCTM(aContext));
  -            CGContextSetPatternPhase(aContext, CGSizeMake(transformedOrigin.x, transformedOrigin.y));
  -
  +            CGAffineTransform userToBase = CGAffineTransformConcat(CGContextGetCTM(aContext),
  +                CGAffineTransformInvert(CGContextGetBaseCTM(aContext)));
  +            CGPoint phase = CGPointApplyAffineTransform(tileOrigin, userToBase);
  +            
  +            CGContextSetPatternPhase(aContext, CGSizeMake(phase.x, phase.y));
  +        
               CGColorSpaceRef patternSpace = CGColorSpaceCreatePattern(NULL);
               CGContextSetFillColorSpace(aContext, patternSpace);
               CGColorSpaceRelease(patternSpace);
  
  
  



More information about the webkit-changes mailing list