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

Issue 2088323003: Don't invalidate width for children unless scrollbars have changed. (Closed)

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

Description

Don't invalidate width for children unless scrollbars have changed. Previous to this patch, PaintLayerScrollableArea::updateAfterLayout would call box().scrollbarsChanged(), even if relayout was delayed. The result is that the box would sometimes force relayout its children even when the box'es final state had the same logical width as before. With this patch, box().scrollbarsChanged() is only called when the final state of scrollbars differs from the initial state. BUG=621644 R=cbiesinger@chromium.org,eae@chromium.org Committed: https://crrev.com/96c111dfbb085888c163c987375ff854b4619c5e Cr-Commit-Position: refs/heads/master@{#401745}

Patch Set 1 #

Patch Set 2 : Add test #

Patch Set 3 : Use Ahem font in test #

Patch Set 4 : Try to make test platform independent #

Total comments: 6

Patch Set 5 : nits #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -26 lines) Patch
A third_party/WebKit/LayoutTests/css3/flexbox/scrollbars-changed.html View 1 2 3 1 chunk +42 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/css3/flexbox/scrollbars-changed-expected.txt View 1 2 3 3 chunks +10 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h View 1 2 3 4 6 chunks +29 lines, -5 lines 1 comment Download
M third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp View 1 2 3 4 5 chunks +32 lines, -11 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
szager1
4 years, 6 months ago (2016-06-23 05:00:36 UTC) #1
eae
OK, I'd like skobes or cbiesinger to take a look as well though as they've ...
4 years, 6 months ago (2016-06-23 07:47:27 UTC) #2
cbiesinger
lgtm. maybe we should also add a PerformanceTest here? https://cs.chromium.org/chromium/src/third_party/WebKit/PerformanceTests/Layout/
4 years, 6 months ago (2016-06-23 17:58:15 UTC) #3
skobes
PLSA is getting crazier and crazier. At some point we need to step back and ...
4 years, 6 months ago (2016-06-23 18:19:18 UTC) #5
szager1
https://codereview.chromium.org/2088323003/diff/60001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h (right): https://codereview.chromium.org/2088323003/diff/60001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h#newcode178 third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h:178: static void setBoxNeedsLayout(PaintLayerScrollableArea&, bool hadHorizontalScrollbar, bool hadVerticalScrollbar); On 2016/06/23 ...
4 years, 6 months ago (2016-06-23 19:05:31 UTC) #6
skobes
lgtm https://codereview.chromium.org/2088323003/diff/80001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h (right): https://codereview.chromium.org/2088323003/diff/80001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h#newcode174 third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h:174: // will be called as appropriate for all ...
4 years, 6 months ago (2016-06-23 19:08:22 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2088323003/80001
4 years, 6 months ago (2016-06-23 20:29:35 UTC) #10
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 6 months ago (2016-06-23 22:35:06 UTC) #11
commit-bot: I haz the power
4 years, 6 months ago (2016-06-23 22:36:54 UTC) #13
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/96c111dfbb085888c163c987375ff854b4619c5e
Cr-Commit-Position: refs/heads/master@{#401745}

Powered by Google App Engine
This is Rietveld 408576698