|
Strip anonymous wrappers when a block flow no longer requires them
When a floating/out-of-flow or inline child is added to a an element with block
children ensure that we don't create unnecessary anonymous wrappers for it but
use any adjacent wrappers if they are available. For good measure, also ensure any
sequences of out-of-flow/floating/inline elements the addition of the inline child
creates are folded into the same anonymous block.
If we remove a child and it leaves us without any block children then reset the
parent to have inline children so that it doesn't get an unnecessary anonymous
wrapper.
BUG= 411256
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=202391
Total comments: 6
Total comments: 6
Total comments: 1
Total comments: 9
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+718 lines, -515 lines) |
Patch |
 |
M |
LayoutTests/TestExpectations
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/block/float/add-abspos-before-float-in-block-children-block.html
|
View
|
5
6
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/block/float/add-abspos-before-float-in-block-children-block-expected.html
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/block/float/add-inline-before-float-in-block-children-block.html
|
View
|
5
6
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/block/float/add-inline-before-float-in-block-children-block-expected.html
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/block/float/add-inline-between-floats-with-preceding-anonymous-box.html
|
View
|
1
2
5
6
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/block/float/add-inline-to-block-flow-with-block-children-that-do-not-need-anonymous-boxes.html
|
View
|
1
2
5
6
|
1 chunk |
+17 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/block/float/add-inlines-in-block-children-block.html
|
View
|
5
6
|
1 chunk |
+15 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/block/float/add-inlines-in-block-children-block-expected.html
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/platform/linux/css1/box_properties/float_on_text_elements-expected.txt
|
View
|
1
2
3
4
|
4 chunks |
+88 lines, -88 lines |
0 comments
|
Download
|
 |
M |
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
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
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
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A |
LayoutTests/platform/linux/fast/block/float/add-inline-between-floats-with-preceding-anonymous-box-expected.png
|
View
|
1
2
5
6
|
Binary file |
0 comments
|
Download
|
 |
A |
LayoutTests/platform/linux/fast/block/float/add-inline-between-floats-with-preceding-anonymous-box-expected.txt
|
View
|
1
2
5
6
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/platform/linux/fast/block/float/add-inline-to-block-flow-with-block-children-that-do-not-need-anonymous-boxes-expected.png
|
View
|
1
2
5
6
|
Binary file |
0 comments
|
Download
|
 |
A |
LayoutTests/platform/linux/fast/block/float/add-inline-to-block-flow-with-block-children-that-do-not-need-anonymous-boxes-expected.txt
|
View
|
1
2
5
6
|
1 chunk |
+17 lines, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/platform/linux/fast/block/float/nestedAnonymousBlocks-expected.txt
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+8 lines, -8 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/platform/linux/fast/box-sizing/box-sizing-expected.txt
|
View
|
1
2
|
2 chunks |
+11 lines, -11 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/platform/linux/fast/css/color-correction-on-backgrounds-expected.txt
|
View
|
1
2
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/platform/linux/fast/css/word-space-extra-expected.txt
|
View
|
1
2
|
3 chunks |
+399 lines, -399 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/platform/linux/fast/forms/input-align-image-expected.txt
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/platform/linux/fast/text/word-break-run-rounding-expected.txt
|
View
|
1
2
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/core/layout/LayoutBlock.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
4 chunks |
+37 lines, -1 line |
0 comments
|
Download
|
Total messages: 20 (3 generated)
|