Root layer scrolling: set correct size for document's main GraphicsLayer.
The main GraphicsLayer of a composited scroller should be the size of the scroller's frame. Report this size in PaintLayer::boundingBoxForCompositing and update ViewPainter to use the same rect when painting the background fill. This fixes placement of scrollbar layers in RTL documents, which were confused by a bogus m_offsetFromLayoutObject because the rect returned by LayoutView::documentRect is relative to the scroll origin. This patch makes compositing/rtl/rtl-overflow-invalidation.html pass (discovered through flag-specific expectations!) Sadly we regress several repaint-tracking tests due to the new invalidation in FrameView::viewportSizeChanged. These will need flag-specific baselines (not yet implemented) at least until http://crbug.com/568847 is addressed. BUG=542432 Review URL: https://codereview.chromium.org/1472083006 Cr-Commit-Position: refs/heads/master@{#367034}
Showing
Please register or sign in to comment