Fixed <rdar://problem/3959304> PDF in img tag is not rendered correctly anymore
authorrjw <rjw@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 Feb 2005 00:11:18 +0000 (00:11 +0000)
committerrjw <rjw@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 Feb 2005 00:11:18 +0000 (00:11 +0000)
We were incorrectly adding image position when flipping coordinates.

        Reviewed by David Harrison.

        * WebCoreSupport.subproj/WebImageData.m:
        (-[WebImageData _PDFDrawFromRect:toRect:operation:alpha:flipped:context:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8620 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/ChangeLog
WebKit/WebCoreSupport.subproj/WebImageData.m

index 422fb544ace2a3b5edfa573f61ad7e0092ec0b82..108f44380b1f7c1d8accc48ae6bf7eff284402cc 100644 (file)
@@ -1,3 +1,14 @@
+2005-02-17  Richard Williamson   <rjw@apple.com>
+
+       Fixed <rdar://problem/3959304> PDF in img tag is not rendered correctly anymore
+
+       We were incorrectly adding image position when flipping coordinates.
+
+        Reviewed by David Harrison.
+
+        * WebCoreSupport.subproj/WebImageData.m:
+        (-[WebImageData _PDFDrawFromRect:toRect:operation:alpha:flipped:context:]):
+
 2005-02-17  Richard Williamson   <rjw@apple.com>
 
        Fixed <rdar://problem/4007262> Seed: Flight tracker scrolling moves to the left
index be908966ea207af54de23489eb4cca458b954eed..022a35ef125a5248ace10f11339c38bd448db396 100644 (file)
@@ -917,7 +917,7 @@ static NSMutableSet *activeAnimations;
     // Reverse if flipped image.
     if (flipped) {
         CGContextScaleCTM(context, 1, -1);
-        CGContextTranslateCTM (context, 0, -(dstRect.origin.y + dstRect.size.height));
+        CGContextTranslateCTM (context, 0, -dstRect.size.height);
     }
 
     // Clip to destination in case we are imaging part of the source only