RenderView::documentRect() is calculating the "scaled" document rect by applying the current transformation matrix to the unscaledDocumentRect() and then returning the rounded-out IntRect result. This rounding out is incorrect because it allows the scaled rectangle to represent an area that is not actually covered by the document. This is evidenced by the document.body.scrollWidth() and document.body.scrollHeight() changing under page scale factor when they are expected to remain invariant.
Created attachment 144054 [details] Patch
Created attachment 144060 [details] Patch
For posterity, the effect of this bug is being able to scroll a page one pixel beyond the actual content dimensions at some page scale factors. With the Chromium compositor this causes a red band to be shown to the right and bottom of the page.
Comment on attachment 144060 [details] Patch Rounding for teh loss! R=me.
Comment on attachment 144060 [details] Patch Clearing flags on attachment: 144060 Committed r118569: <http://trac.webkit.org/changeset/118569>
All reviewed patches have been landed. Closing bug.