Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(643)

Issue 1472083006: Root layer scrolling: set correct size for document's main GraphicsLayer. (Closed)

Created:
5 years ago by skobes
Modified:
4 years, 12 months ago
Reviewers:
Ian Vollick
CC:
blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dshwang, slimming-paint-reviews_chromium.org, szager1, trchen
Base URL:
https://chromium.googlesource.com/chromium/src.git@garden
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -13 lines) Patch
M third_party/WebKit/LayoutTests/FlagExpectations/root-layer-scrolls View 1 3 chunks +8 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayer.cpp View 1 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/ViewPainter.cpp View 1 2 5 chunks +11 lines, -10 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 21 (13 generated)
skobes
5 years ago (2015-12-17 05:04:28 UTC) #5
skobes
I think trchen is OOO. @vollick can you take a look (if you're around)?
5 years ago (2015-12-18 18:01:50 UTC) #7
Ian Vollick
https://codereview.chromium.org/1472083006/diff/120001/third_party/WebKit/Source/core/paint/PaintLayer.cpp File third_party/WebKit/Source/core/paint/PaintLayer.cpp (right): https://codereview.chromium.org/1472083006/diff/120001/third_party/WebKit/Source/core/paint/PaintLayer.cpp#newcode2190 third_party/WebKit/Source/core/paint/PaintLayer.cpp:2190: if (isRootLayer() && !needsCompositedScrolling()) If the root layer does ...
5 years ago (2015-12-22 03:21:50 UTC) #8
skobes
https://codereview.chromium.org/1472083006/diff/120001/third_party/WebKit/Source/core/paint/PaintLayer.cpp File third_party/WebKit/Source/core/paint/PaintLayer.cpp (right): https://codereview.chromium.org/1472083006/diff/120001/third_party/WebKit/Source/core/paint/PaintLayer.cpp#newcode2190 third_party/WebKit/Source/core/paint/PaintLayer.cpp:2190: if (isRootLayer() && !needsCompositedScrolling()) On 2015/12/22 at 03:21:50, vollick ...
4 years, 12 months ago (2015-12-28 23:33:17 UTC) #15
Ian Vollick
https://codereview.chromium.org/1472083006/diff/120001/third_party/WebKit/Source/core/paint/PaintLayer.cpp File third_party/WebKit/Source/core/paint/PaintLayer.cpp (right): https://codereview.chromium.org/1472083006/diff/120001/third_party/WebKit/Source/core/paint/PaintLayer.cpp#newcode2190 third_party/WebKit/Source/core/paint/PaintLayer.cpp:2190: if (isRootLayer() && !needsCompositedScrolling()) On 2015/12/28 23:33:17, skobes wrote: ...
4 years, 12 months ago (2015-12-29 00:54:29 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1472083006/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1472083006/160001
4 years, 12 months ago (2015-12-29 01:02:48 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:160001)
4 years, 12 months ago (2015-12-29 01:09:22 UTC) #19
commit-bot: I haz the power
4 years, 12 months ago (2015-12-29 01:10:07 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/027a020589e4b35c14a40193e4b953733e70f410
Cr-Commit-Position: refs/heads/master@{#367034}

Powered by Google App Engine
This is Rietveld 408576698