PrintContext::computePageRects is very similar to computePageRectsForFrame in WebCore/page/FrameWin.cpp. We should be able to share the code. This is another instance of Bug 18578. A patch will come soon later.
Created attachment 47683 [details] Patch v1
I manually tested this patch by print-preview and didn't see any difference between before and after this patch. Please let me know if there are something I must check.
Comment on attachment 47683 [details] Patch v1 Looks sane to me.
Attachment 47683 [details] was posted by a committer and has review+, assigning to Shinichiro Hamaji for commit.
Committed r54221: <http://trac.webkit.org/changeset/54221>