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

Issue 195363007: Avoid unnecessary descents into nested boxes with floats. (Closed)

Created:
6 years, 9 months ago by rhogan
Modified:
6 years, 5 months ago
CC:
bemjb+rendering_chromium.org, blink-reviews, dsinclair, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr., zoltan1
Visibility:
Public.

Description

Avoid unnecessary descents into nested boxes with floats. Steal a bit from RenderBlock to avoid descending through the same stack of nested boxes multiple times while preparing to lay them out. This CL creates a 4% improvement in the Performance/Layout/floats_*_nested.html tests. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170060 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178193

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rebased #

Patch Set 3 : Trying again #

Total comments: 5

Patch Set 4 : Updated #

Total comments: 3

Patch Set 5 : Updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -0 lines) Patch
A LayoutTests/fast/block/float/float-mark-descendants-for-layout-crash.html View 1 2 3 1 chunk +52 lines, -0 lines 0 comments Download
A + LayoutTests/fast/block/float/float-mark-descendants-for-layout-crash-expected.txt View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
M Source/core/rendering/RenderBlock.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderBlock.cpp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/RenderBlockFlow.cpp View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (0 generated)
rhogan
6 years, 9 months ago (2014-03-13 19:12:40 UTC) #1
ojan
6 years, 9 months ago (2014-03-20 19:39:05 UTC) #2
Bem Jones-Bey (adobe)
I like the idea. https://codereview.chromium.org/195363007/diff/1/Source/core/rendering/RenderBlock.h File Source/core/rendering/RenderBlock.h (right): https://codereview.chromium.org/195363007/diff/1/Source/core/rendering/RenderBlock.h#newcode556 Source/core/rendering/RenderBlock.h:556: mutable unsigned m_descendantsWithFloatsMarkedForLayout : 1; ...
6 years, 9 months ago (2014-03-20 20:00:10 UTC) #3
rhogan
On 2014/03/20 20:00:10, Bem Jones-Bey (adobe) wrote: > I like the idea. Cool! > > ...
6 years, 9 months ago (2014-03-20 20:06:49 UTC) #4
Bem Jones-Bey (adobe)
On 2014/03/20 20:06:49, rhogan wrote: > On 2014/03/20 20:00:10, Bem Jones-Bey (adobe) wrote: > > ...
6 years, 9 months ago (2014-03-20 20:17:50 UTC) #5
Julien - ping for review
On 2014/03/20 20:17:50, Bem Jones-Bey (adobe) wrote: > On 2014/03/20 20:06:49, rhogan wrote: > > ...
6 years, 9 months ago (2014-03-21 22:40:46 UTC) #6
rhogan
On 2014/03/21 22:40:46, Julien Chaffraix - PST wrote: > > Robert, are there some performance ...
6 years, 9 months ago (2014-03-24 20:18:10 UTC) #7
Julien - ping for review
looks reasonable, lgtm Levi should comment too as he knows the float code better than ...
6 years, 9 months ago (2014-03-24 23:57:16 UTC) #8
ojan
The CQ bit was checked by ojan@chromium.org
6 years, 9 months ago (2014-03-25 00:01:35 UTC) #9
ojan
The CQ bit was unchecked by ojan@chromium.org
6 years, 9 months ago (2014-03-25 00:01:38 UTC) #10
leviw_travelin_and_unemployed
LGTM as well.
6 years, 9 months ago (2014-03-25 00:15:28 UTC) #11
ojan
The CQ bit was checked by ojan@chromium.org
6 years, 9 months ago (2014-03-25 00:17:50 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robhogan@gmail.com/195363007/1
6 years, 9 months ago (2014-03-25 00:17:56 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-25 00:18:06 UTC) #14
commit-bot: I haz the power
Failed to apply patch for Source/core/rendering/RenderBlockFlow.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 9 months ago (2014-03-25 00:18:07 UTC) #15
rhogan
The CQ bit was checked by robhogan@gmail.com
6 years, 9 months ago (2014-03-25 18:46:37 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robhogan@gmail.com/195363007/20001
6 years, 9 months ago (2014-03-25 18:46:44 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-25 19:56:52 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
6 years, 9 months ago (2014-03-25 19:56:53 UTC) #19
rhogan
The CQ bit was checked by robhogan@gmail.com
6 years, 9 months ago (2014-03-25 20:04:18 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robhogan@gmail.com/195363007/20001
6 years, 9 months ago (2014-03-25 20:04:19 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-25 21:10:25 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
6 years, 9 months ago (2014-03-25 21:10:26 UTC) #23
rhogan
The CQ bit was checked by robhogan@gmail.com
6 years, 9 months ago (2014-03-26 09:01:33 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robhogan@gmail.com/195363007/20001
6 years, 9 months ago (2014-03-26 09:01:44 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-26 10:05:47 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
6 years, 9 months ago (2014-03-26 10:05:48 UTC) #27
rhogan
The CQ bit was checked by robhogan@gmail.com
6 years, 9 months ago (2014-03-26 13:21:02 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robhogan@gmail.com/195363007/20001
6 years, 9 months ago (2014-03-26 13:21:04 UTC) #29
commit-bot: I haz the power
Change committed as 170060
6 years, 9 months ago (2014-03-26 14:30:34 UTC) #30
rhogan
A revert of this CL has been created in https://codereview.chromium.org/214523007/ by robhogan@gmail.com. The reason for ...
6 years, 9 months ago (2014-03-27 18:41:03 UTC) #31
Julien - ping for review
https://codereview.chromium.org/195363007/diff/230001/Source/core/rendering/RenderBlockFlow.cpp File Source/core/rendering/RenderBlockFlow.cpp (right): https://codereview.chromium.org/195363007/diff/230001/Source/core/rendering/RenderBlockFlow.cpp#newcode1702 Source/core/rendering/RenderBlockFlow.cpp:1702: m_descendantsWithFloatsMarkedForLayout = !m_descendantsWithFloatsMarkedForLayout && !floatToRemove; The old code would ...
6 years, 8 months ago (2014-04-23 00:46:20 UTC) #32
Julien - ping for review
Forgot to look at the tests. I only commented on one but the comments apply ...
6 years, 8 months ago (2014-04-23 00:50:54 UTC) #33
Julien - ping for review
lgtm https://codereview.chromium.org/195363007/diff/250001/LayoutTests/fast/block/float/float-mark-descendants-for-layout-crash.html File LayoutTests/fast/block/float/float-mark-descendants-for-layout-crash.html (right): https://codereview.chromium.org/195363007/diff/250001/LayoutTests/fast/block/float/float-mark-descendants-for-layout-crash.html#newcode48 LayoutTests/fast/block/float/float-mark-descendants-for-layout-crash.html:48: setTimeout('clear();', 700); Do we really need a 700ms ...
6 years, 8 months ago (2014-04-25 20:22:28 UTC) #34
pdr.
https://codereview.chromium.org/195363007/diff/250001/Source/core/rendering/RenderBlock.h File Source/core/rendering/RenderBlock.h (right): https://codereview.chromium.org/195363007/diff/250001/Source/core/rendering/RenderBlock.h#newcode534 Source/core/rendering/RenderBlock.h:534: mutable signed m_lineHeight : 25; Can you help me ...
6 years, 8 months ago (2014-04-26 01:47:40 UTC) #35
pdr.
6 years, 8 months ago (2014-04-26 01:47:42 UTC) #36
rhogan
On 2014/04/26 01:47:40, pdr wrote: > https://codereview.chromium.org/195363007/diff/250001/Source/core/rendering/RenderBlock.h > File Source/core/rendering/RenderBlock.h (right): > > https://codereview.chromium.org/195363007/diff/250001/Source/core/rendering/RenderBlock.h#newcode534 > ...
6 years, 8 months ago (2014-04-26 08:57:31 UTC) #37
rhogan
Another go?
6 years, 5 months ago (2014-07-12 09:42:18 UTC) #38
leviw_travelin_and_unemployed
Yeah! LGTM.
6 years, 5 months ago (2014-07-14 19:19:12 UTC) #39
rhogan
The CQ bit was checked by robhogan@gmail.com
6 years, 5 months ago (2014-07-15 17:56:08 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robhogan@gmail.com/195363007/270001
6 years, 5 months ago (2014-07-15 17:56:39 UTC) #41
commit-bot: I haz the power
6 years, 5 months ago (2014-07-15 20:15:24 UTC) #42
Message was sent while issue was closed.
Change committed as 178193

Powered by Google App Engine
This is Rietveld 408576698