DescriptionRoot 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
Committed: https://crrev.com/027a020589e4b35c14a40193e4b953733e70f410
Cr-Commit-Position: refs/heads/master@{#367034}
Patch Set 1 : #
Total comments: 3
Patch Set 2 : rebase #Patch Set 3 : reuse boundingBoxForCompositing in ViewPainter #
Depends on Patchset: Messages
Total messages: 21 (13 generated)
|