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

Issue 1811753003: Set m_{width,height}AvailableToChildrenChanged when scrollbars appear (Closed)

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

Description

Set m_{width,height}AvailableToChildrenChanged when scrollbars appear This is a regression from https://codereview.chromium.org/1734203002. Before that change, we'd just call layoutBlock(true). However, the new approach just marks for layout and eventually recurses down, so to ensure that the children get laid out, we have to set m_{width,height}AvailableToChildrenChanged. BUG=594465, 593593, 590683, 593624, 593593 Committed: https://crrev.com/fbb25cec59deb052604d63036f1c5baf6efd2a5c Cr-Commit-Position: refs/heads/master@{#382074}

Patch Set 1 #

Patch Set 2 : add a test (minimized from trace viewer) #

Total comments: 5

Patch Set 3 : review comments for test #

Total comments: 1

Patch Set 4 : style issues in test #

Patch Set 5 : abspos #

Total comments: 2

Patch Set 6 : review comments #

Patch Set 7 : different/better approach #

Total comments: 2

Patch Set 8 : review comment #

Messages

Total messages: 43 (19 generated)
cbiesinger
4 years, 9 months ago (2016-03-17 19:46:19 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1811753003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1811753003/20001
4 years, 9 months ago (2016-03-17 19:46:28 UTC) #5
mstensho (USE GERRIT)
https://codereview.chromium.org/1811753003/diff/20001/third_party/WebKit/LayoutTests/css3/flexbox/overflow-auto-dynamic-changes.html File third_party/WebKit/LayoutTests/css3/flexbox/overflow-auto-dynamic-changes.html (right): https://codereview.chromium.org/1811753003/diff/20001/third_party/WebKit/LayoutTests/css3/flexbox/overflow-auto-dynamic-changes.html#newcode2 third_party/WebKit/LayoutTests/css3/flexbox/overflow-auto-dynamic-changes.html:2: <title>This test should not have a horizontal scrollbar</title> I ...
4 years, 9 months ago (2016-03-17 19:57:06 UTC) #7
cbiesinger
https://codereview.chromium.org/1811753003/diff/20001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/1811753003/diff/20001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp#newcode688 third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp:688: delayedLayoutScope->setNeedsLayout(child, LayoutInvalidationReason::ScrollbarChanged); On 2016/03/17 19:57:06, mstensho wrote: > Aren't ...
4 years, 9 months ago (2016-03-17 20:03:03 UTC) #8
mstensho (USE GERRIT)
https://codereview.chromium.org/1811753003/diff/20001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/1811753003/diff/20001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp#newcode688 third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp:688: delayedLayoutScope->setNeedsLayout(child, LayoutInvalidationReason::ScrollbarChanged); On 2016/03/17 20:03:03, cbiesinger wrote: > On ...
4 years, 9 months ago (2016-03-17 20:24:07 UTC) #9
cbiesinger
Adding a width makes this inconclusive (the point is about recalculating the width when we ...
4 years, 9 months ago (2016-03-17 20:47:07 UTC) #10
cbiesinger
Got a failing testcase, the abspos needs to be a sibling of history. It does ...
4 years, 9 months ago (2016-03-17 21:05:12 UTC) #11
cbiesinger
New version uploaded, PTAL
4 years, 9 months ago (2016-03-17 21:09:20 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1811753003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1811753003/80001
4 years, 9 months ago (2016-03-17 21:09:46 UTC) #14
mstensho (USE GERRIT)
lgtm. I don't know any cases where a scrollable is something other than LayoutBlock (but ...
4 years, 9 months ago (2016-03-17 21:23:36 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1811753003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1811753003/100001
4 years, 9 months ago (2016-03-17 21:29:25 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/198223)
4 years, 9 months ago (2016-03-17 23:59:46 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1811753003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1811753003/100001
4 years, 9 months ago (2016-03-18 01:25:31 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/198402)
4 years, 9 months ago (2016-03-18 03:49:21 UTC) #25
cbiesinger
I thought about this some more. I now think that maybe the real problem is ...
4 years, 9 months ago (2016-03-18 15:01:28 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1811753003/40002 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1811753003/40002
4 years, 9 months ago (2016-03-18 15:34:20 UTC) #28
cbiesinger
mstensho - this is now an entirely different approach which I think works much better. ...
4 years, 9 months ago (2016-03-18 16:40:15 UTC) #29
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-18 17:47:39 UTC) #31
mstensho (USE GERRIT)
lgtm^2 - this is much better! https://codereview.chromium.org/1811753003/diff/40002/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/1811753003/diff/40002/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp#newcode686 third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp:686: block.scrollbarsChanged(horizontalScrollBarChanged, verticalScrollBarChanged); I'm ...
4 years, 9 months ago (2016-03-18 19:04:26 UTC) #32
cbiesinger
Thanks! https://codereview.chromium.org/1811753003/diff/40002/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/1811753003/diff/40002/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp#newcode686 third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp:686: block.scrollbarsChanged(horizontalScrollBarChanged, verticalScrollBarChanged); On 2016/03/18 19:04:26, mstensho wrote: > ...
4 years, 9 months ago (2016-03-18 19:13:47 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1811753003/130001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1811753003/130001
4 years, 9 months ago (2016-03-18 19:13:52 UTC) #36
cbiesinger
As a sidenote, we can probably now pass false in the layoutBlock call a few ...
4 years, 9 months ago (2016-03-18 19:56:34 UTC) #39
commit-bot: I haz the power
Committed patchset #8 (id:130001)
4 years, 9 months ago (2016-03-18 20:40:20 UTC) #41
commit-bot: I haz the power
4 years, 9 months ago (2016-03-18 20:41:28 UTC) #43
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/fbb25cec59deb052604d63036f1c5baf6efd2a5c
Cr-Commit-Position: refs/heads/master@{#382074}

Powered by Google App Engine
This is Rietveld 408576698