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

Issue 253313005: Strip anonymous blocks when change in style removes need for them (Closed)

Created:
6 years, 7 months ago by rhogan
Modified:
6 years, 1 month ago
CC:
bemjb+rendering_chromium.org, blink-reviews, chrishtr, dsinclair, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, mstensho (USE GERRIT), pdr., rune+blink, zoltan1
Visibility:
Public.

Description

Strip anonymous blocks when change in style removes need for them When a block element becomes a float or out of flow we should strip any anonymous blocks wrapping its inline siblings. BUG=331251 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185200

Patch Set 1 #

Patch Set 2 : Updated #

Patch Set 3 : Updated #

Total comments: 6

Patch Set 4 : Updated #

Total comments: 3

Patch Set 5 : Updated #

Patch Set 6 : Updated #

Total comments: 2

Patch Set 7 : Updated #

Patch Set 8 : Updated #

Total comments: 4

Patch Set 9 : Updated #

Total comments: 1

Patch Set 10 : Updated for Landing #

Patch Set 11 : Updated for Landing #

Patch Set 12 : Updated #

Total comments: 5

Patch Set 13 : Updated #

Patch Set 14 : Updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, --2 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +8 lines, -0 lines 0 comments Download
A LayoutTests/fast/block/do-not-strip-anonymous-blocks-when-block-child-becomes-float-and-anonymous-blocks-have-inline-children.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +38 lines, -0 lines 0 comments Download
A LayoutTests/fast/block/do-not-strip-anonymous-blocks-when-block-child-becomes-float-and-anonymous-blocks-have-inline-children-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
A LayoutTests/fast/block/do-not-strip-anonymous-blocks-when-block-child-becomes-float-and-continuation-on-line.html View 1 2 3 4 5 6 7 1 chunk +31 lines, -0 lines 0 comments Download
A LayoutTests/fast/block/do-not-strip-anonymous-blocks-when-block-child-becomes-float-and-other-block-on-line.html View 1 2 3 4 5 6 7 1 chunk +30 lines, -0 lines 0 comments Download
A LayoutTests/fast/block/strip-anonymous-blocks-when-block-child-becomes-float.html View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
A LayoutTests/fast/block/strip-anonymous-blocks-when-block-child-becomes-float-expected.txt View 1 chunk +6 lines, -0 lines 0 comments Download
M LayoutTests/fast/repaint/position-change-keeping-geometry.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +6 lines, -0 lines 0 comments Download
A LayoutTests/platform/linux/fast/block/do-not-strip-anonymous-blocks-when-block-child-becomes-float-and-continuation-on-line-expected.png View 1 2 3 4 5 6 7 8 9 10 11 Binary file 0 comments Download
A + LayoutTests/platform/linux/fast/block/do-not-strip-anonymous-blocks-when-block-child-becomes-float-and-continuation-on-line-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 0 chunks +-1 lines, --1 lines 0 comments Download
A LayoutTests/platform/linux/fast/block/do-not-strip-anonymous-blocks-when-block-child-becomes-float-and-other-block-on-line-expected.png View 1 2 3 4 5 6 7 8 9 10 11 Binary file 0 comments Download
A + LayoutTests/platform/linux/fast/block/do-not-strip-anonymous-blocks-when-block-child-becomes-float-and-other-block-on-line-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 0 chunks +-1 lines, --1 lines 0 comments Download
M Source/core/rendering/RenderBlock.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderBlock.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +25 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (4 generated)
rhogan
6 years, 7 months ago (2014-05-06 17:38:56 UTC) #1
ojan
jchaffraix, you mind reviewing this? I think you know about anonymous wrapper code more than ...
6 years, 7 months ago (2014-05-06 18:43:02 UTC) #2
esprehn
Things like this should really be a post processing step for recalcStyle, this means toggling ...
6 years, 7 months ago (2014-05-06 18:55:44 UTC) #3
Julien - ping for review
Some comments, I haven't thought about the change in great details. > Is this only ...
6 years, 7 months ago (2014-05-07 01:38:46 UTC) #4
rhogan
On 2014/05/07 01:38:46, Julien Chaffraix - CET wrote: > Some comments, I haven't thought about ...
6 years, 7 months ago (2014-05-19 20:25:05 UTC) #5
esprehn
How do you know the children will always be blocks? Are you sure they can't ...
6 years, 7 months ago (2014-05-19 20:54:57 UTC) #6
mstensho (USE GERRIT)
6 years, 7 months ago (2014-05-20 08:35:09 UTC) #7
esprehn
lgtm, few nits https://codereview.chromium.org/253313005/diff/90001/LayoutTests/fast/block/strip-anonymous-blocks-when-block-child-becomes-float.html File LayoutTests/fast/block/strip-anonymous-blocks-when-block-child-becomes-float.html (right): https://codereview.chromium.org/253313005/diff/90001/LayoutTests/fast/block/strip-anonymous-blocks-when-block-child-becomes-float.html#newcode3 LayoutTests/fast/block/strip-anonymous-blocks-when-block-child-becomes-float.html:3: <head> We usually leave off <html>, ...
6 years, 7 months ago (2014-05-20 19:42:45 UTC) #8
rhogan
The CQ bit was checked by robhogan@gmail.com
6 years, 7 months ago (2014-05-20 20:46:25 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robhogan@gmail.com/253313005/100001
6 years, 7 months ago (2014-05-20 20:47:55 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-20 22:15:01 UTC) #11
commit-bot: I haz the power
Change committed as 174420
6 years, 7 months ago (2014-05-20 22:48:08 UTC) #12
esprehn
A revert of this CL has been created in https://codereview.chromium.org/287193013/ by esprehn@chromium.org. The reason for ...
6 years, 7 months ago (2014-05-22 17:14:05 UTC) #13
esprehn
https://codereview.chromium.org/253313005/diff/120001/Source/core/rendering/RenderBlock.cpp File Source/core/rendering/RenderBlock.cpp (right): https://codereview.chromium.org/253313005/diff/120001/Source/core/rendering/RenderBlock.cpp#newcode1086 Source/core/rendering/RenderBlock.cpp:1086: void RenderBlock::removeAnonymousWrappersIfRequired() Should this method be in RenderBlockFlow instead? ...
6 years, 7 months ago (2014-05-27 20:05:02 UTC) #14
rhogan
On 2014/05/27 20:05:02, esprehn wrote: > https://codereview.chromium.org/253313005/diff/120001/Source/core/rendering/RenderBlock.cpp > File Source/core/rendering/RenderBlock.cpp (right): > > https://codereview.chromium.org/253313005/diff/120001/Source/core/rendering/RenderBlock.cpp#newcode1086 > ...
6 years, 7 months ago (2014-05-27 20:56:14 UTC) #15
esprehn
lgtm, lets try it again! https://codereview.chromium.org/253313005/diff/140001/Source/core/rendering/RenderBlock.cpp File Source/core/rendering/RenderBlock.cpp (right): https://codereview.chromium.org/253313005/diff/140001/Source/core/rendering/RenderBlock.cpp#newcode1088 Source/core/rendering/RenderBlock.cpp:1088: Vector<RenderBox*, 16> blocksToRemove; I ...
6 years, 7 months ago (2014-05-27 21:44:42 UTC) #16
rhogan
The CQ bit was checked by robhogan@gmail.com
6 years, 6 months ago (2014-06-01 11:48:31 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robhogan@gmail.com/253313005/170001
6 years, 6 months ago (2014-06-01 11:48:44 UTC) #18
commit-bot: I haz the power
Change committed as 175220
6 years, 6 months ago (2014-06-01 12:48:38 UTC) #19
rhogan
A revert of this CL has been created in https://codereview.chromium.org/349103002/ by robhogan@gmail.com. The reason for ...
6 years, 6 months ago (2014-06-22 22:47:52 UTC) #20
rhogan
https://codereview.chromium.org/253313005/diff/190001/Source/core/rendering/RenderBlock.cpp File Source/core/rendering/RenderBlock.cpp (right): https://codereview.chromium.org/253313005/diff/190001/Source/core/rendering/RenderBlock.cpp#newcode1118 Source/core/rendering/RenderBlock.cpp:1118: if (!child->childrenInline()) This addresses the cause of the clusterfuzz ...
6 years, 1 month ago (2014-11-10 19:22:57 UTC) #21
leviw_travelin_and_unemployed
The code looks fine. Just adding obnoxious nits to your test case ;) https://codereview.chromium.org/253313005/diff/190001/LayoutTests/fast/block/do-not-strip-anonymous-blocks-when-block-child-becomes-float-and-anonymous-blocks-have-inline-children.html File ...
6 years, 1 month ago (2014-11-10 21:46:10 UTC) #23
esprehn
lgtm w/ nits from leviw@ addressed.
6 years, 1 month ago (2014-11-11 19:02:40 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/253313005/210001
6 years, 1 month ago (2014-11-11 20:54:48 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/33085)
6 years, 1 month ago (2014-11-11 22:11:42 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/253313005/230001
6 years, 1 month ago (2014-11-12 10:28:58 UTC) #30
commit-bot: I haz the power
6 years, 1 month ago (2014-11-12 11:40:43 UTC) #31
Message was sent while issue was closed.
Committed patchset #14 (id:230001) as 185200

Powered by Google App Engine
This is Rietveld 408576698