WKPDFView paints rotated pages squished
[WebKit-https.git] / Source / WebKit2 / ChangeLog
index b2fb672719546824a18d17f36af71ad0b23e80b2..bb2402f84029413bc0b8d53556e30dd5e00a8df1 100644 (file)
@@ -1,3 +1,19 @@
+2014-07-29  Tim Horton  <timothy_horton@apple.com>
+
+        WKPDFView paints rotated pages squished
+        https://bugs.webkit.org/show_bug.cgi?id=135401
+        <rdar://problem/17173916>
+
+        Reviewed by Simon Fraser.
+
+        * UIProcess/ios/WKPDFView.mm:
+        (-[WKPDFView _computePageAndDocumentFrames]):
+        [page size] returns the crop box's size, ignoring rotation.
+        [page cropBoxAccountForRotation] respects rotation, but otherwise returns the same size.
+        UIPDFPageView will respect rotation when painting, so we
+        should make sure that it is given an aspect ratio that also
+        respects rotation, so that the page isn't squished.
+
 2014-07-29  Csaba Osztrogon√°c  <ossy@webkit.org>
 
         URTBF for !ENABLE(DATABASE_PROCESS) platforms.