Commit d0bcf452 authored by rjw's avatar rjw
Browse files

i Change relating to 3083287. This doesn't fix the problem but

        flips the geometry calcs to get most incremental images to draw
        correctly.  .mac now slideshows draw with the incorrect sliding
        behavior while loading.

        3083287 has been moved to 0.9/1.

        Reviewed by darin.

        * WebCoreSupport.subproj/WebImageRenderer.m:
        (-[WebImageRenderer incrementalLoadWithBytes:length:complete:]):
        (-[WebImageRenderer drawClippedToValidInRect:fromRect:]):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3023 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 104ef9d3
2002-12-12 Richard Williamson <rjw@apple.com>
Change relating to 3083287. This doesn't fix the problem but
flips the geometry calcs to get most incremental images to draw
correctly. .mac now slideshows draw with the incorrect sliding
behavior while loading.
3083287 has been moved to 0.9/1.
Reviewed by darin.
* WebCoreSupport.subproj/WebImageRenderer.m:
(-[WebImageRenderer incrementalLoadWithBytes:length:complete:]):
(-[WebImageRenderer drawClippedToValidInRect:fromRect:]):
2002-12-12 Trey Matteson <trey@apple.com>
Fixed 3094525 - Need to use SPI to fix flipped drag image problem
......
......@@ -142,6 +142,7 @@ - (BOOL)incrementalLoadWithBytes:(const void *)bytes length:(unsigned)length com
[self setSize:size];
return YES;
default:
//printf ("incrementalLoadWithBytes: size %d, isComplete %d\n", length, isComplete);
// We have some data. Return YES so we can attempt to draw what we've got.
return YES;
}
......@@ -261,6 +262,8 @@ - (void)drawClippedToValidInRect:(NSRect)ir fromRect:(NSRect)fr
}
}
fr.origin.y = [self size].height - fr.size.height;
// This is the operation that handles transparent portions of the source image correctly.
[self drawInRect:ir fromRect:fr operation:NSCompositeSourceOver fraction:1.0];
}
......
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