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
+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
// 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