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

Adele adele at opensource.apple.com
Thu Jul 21 18:57:02 PDT 2005


adele       05/07/21 18:57:01

  Modified:    .        ChangeLog
               WebCoreSupport.subproj WebImageData.m
  Log:
          Reviewed by Darin.
  
          Changing temporary #ifndef to #if
  
          * WebCoreSupport.subproj/WebImageData.m:
          (-[WebImageData _checkSolidColor:]):
  
  Revision  Changes    Path
  1.3249    +9 -0      WebKit/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /cvs/root/WebKit/ChangeLog,v
  retrieving revision 1.3248
  retrieving revision 1.3249
  diff -u -r1.3248 -r1.3249
  --- ChangeLog	22 Jul 2005 00:02:19 -0000	1.3248
  +++ ChangeLog	22 Jul 2005 01:56:58 -0000	1.3249
  @@ -1,5 +1,14 @@
   2005-07-21  Adele Peterson  <adele at apple.com>
   
  +        Reviewed by Darin.
  +
  +        Changing temporary #ifndef to #if
  +
  +        * WebCoreSupport.subproj/WebImageData.m:
  +        (-[WebImageData _checkSolidColor:]):
  +
  +2005-07-21  Adele Peterson  <adele at apple.com>
  +
           Reviewed by Chris Blumenberg.
   
           - fixed <rdar://problem/4132797> don't register thin PPC WebKit plug-ins
  
  
  
  1.41      +4 -4      WebKit/WebCoreSupport.subproj/WebImageData.m
  
  Index: WebImageData.m
  ===================================================================
  RCS file: /cvs/root/WebKit/WebCoreSupport.subproj/WebImageData.m,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- WebImageData.m	22 Jul 2005 00:02:23 -0000	1.40
  +++ WebImageData.m	22 Jul 2005 01:57:01 -0000	1.41
  @@ -293,13 +293,13 @@
       if( image && CGImageGetWidth(image)==1 && CGImageGetHeight(image)==1 ) {
           float pixel[4]; // RGBA
           CGColorSpaceRef space = CGColorSpaceCreateDeviceRGB();
  -// This #ifdef won't be needed once the CG header that includes kCGBitmapByteOrder32Host is included in the OS
  -#ifndef __ppc__	
  +// This #if won't be needed once the CG header that includes kCGBitmapByteOrder32Host is included in the OS
  +#if __ppc__	
           CGContextRef bmap = CGBitmapContextCreate(&pixel,1,1,8*sizeof(float),sizeof(pixel),space,
  -                                                  kCGImageAlphaPremultipliedLast | kCGBitmapFloatComponents | kCGBitmapByteOrder32Host);
  +                                                  kCGImageAlphaPremultipliedLast | kCGBitmapFloatComponents);
   #else
           CGContextRef bmap = CGBitmapContextCreate(&pixel,1,1,8*sizeof(float),sizeof(pixel),space,
  -                                                  kCGImageAlphaPremultipliedLast | kCGBitmapFloatComponents);
  +                                                  kCGImageAlphaPremultipliedLast | kCGBitmapFloatComponents | kCGBitmapByteOrder32Host);
   #endif
           if( bmap ) {
               NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
  
  
  



More information about the webkit-changes mailing list