<rdar://problem/13008621>
Created attachment 190400 [details] print
Created attachment 190401
Comment on attachment 190400 [details] print View in context: https://bugs.webkit.org/attachment.cgi?id=190400&action=review > Source/WebKit2/WebProcess/WebPage/mac/WebPageMac.mm:812 > + NSInteger rotation = [pdfPage rotation]; > + if (rotation == 90 || rotation == 270) > + std::swap(cropBox.size.width, cropBox.size.height); Please add a comment about why this is the right thing to do (which is because we always autorotate). When we looked at this code previously, we both agreed that it was wrong, so it's not at all obvious what's going on.
http://trac.webkit.org/changeset/144333