Commit cf3e7a3
committed
[blocks-in-inline] Add support for block after side of margin handling (part 2)
https://bugs.webkit.org/show_bug.cgi?id=303006
Reviewed by Antti Koivisto.
RenderBlockFlows with block level boxes only, handle their after side of margin collapsing
by calling handleAfterSideOfBlock. This function looks into the MarginInfo state which,
at this point, holds information about the trailing child's margin state.
Now with blocks-in-inline, we could end up with such trailing block level elements and
this patch ensures that their margins are taken into account.
Test: fast/inline/blocks-in-inline-layout-with-margin-after2.html
* LayoutTests/fast/inline/blocks-in-inline-layout-with-margin-after2-expected.html: Added.
* LayoutTests/fast/inline/blocks-in-inline-layout-with-margin-after2.html: Added.
* Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayLineBuilder.cpp:
(WebCore::Layout::InlineDisplayLineBuilder::adjustLineBlockAfterSideWithCollapsedMargin):
* Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp:
(WebCore::LayoutIntegration::LineLayout::layout):
(WebCore::LayoutIntegration::initialMarginState): Deleted.
* Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.h:
* Source/WebCore/rendering/RenderBlockFlow.cpp:
(WebCore::RenderBlockFlow::layoutInlineContent):
Canonical link: https://commits.webkit.org/303510@main1 parent e0c8bea commit cf3e7a3
File tree
6 files changed
+56
-17
lines changed- LayoutTests/fast/inline
- Source/WebCore
- layout
- formattingContexts/inline/display
- integration/inline
- rendering
6 files changed
+56
-17
lines changedLines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
524 | | - | |
| 524 | + | |
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
| |||
Lines changed: 5 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
483 | 484 | | |
484 | 485 | | |
485 | 486 | | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
| 487 | + | |
493 | 488 | | |
494 | 489 | | |
495 | 490 | | |
| |||
524 | 519 | | |
525 | 520 | | |
526 | 521 | | |
527 | | - | |
| 522 | + | |
528 | 523 | | |
529 | 524 | | |
530 | 525 | | |
| |||
546 | 541 | | |
547 | 542 | | |
548 | 543 | | |
549 | | - | |
| 544 | + | |
550 | 545 | | |
551 | 546 | | |
552 | 547 | | |
553 | 548 | | |
| 549 | + | |
554 | 550 | | |
555 | 551 | | |
556 | 552 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4106 | 4106 | | |
4107 | 4107 | | |
4108 | 4108 | | |
4109 | | - | |
| 4109 | + | |
| 4110 | + | |
| 4111 | + | |
4110 | 4112 | | |
4111 | 4113 | | |
4112 | | - | |
4113 | | - | |
4114 | | - | |
4115 | | - | |
4116 | | - | |
| 4114 | + | |
| 4115 | + | |
| 4116 | + | |
4117 | 4117 | | |
4118 | 4118 | | |
4119 | 4119 | | |
| |||
0 commit comments