mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-13 04:52:23 +00:00
LibWeb: Don't try to layout list-item markers in BFC
Marker boxes are laid out by the corresponding ListItemBox. BFC should just leave them alone. This fixes a jiggling issue on welcome.html :^)
This commit is contained in:
parent
723ea4bcd7
commit
49916f494d
Notes:
sideshowbarker
2024-07-18 01:48:18 +09:00
Author: https://github.com/awesomekling
Commit: 49916f494d
1 changed files with 5 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
|||
#include <LibWeb/Layout/InitialContainingBlock.h>
|
||||
#include <LibWeb/Layout/InlineFormattingContext.h>
|
||||
#include <LibWeb/Layout/ListItemBox.h>
|
||||
#include <LibWeb/Layout/ListItemMarkerBox.h>
|
||||
#include <LibWeb/Layout/ReplacedBox.h>
|
||||
#include <LibWeb/Page/BrowsingContext.h>
|
||||
|
||||
|
@ -387,6 +388,10 @@ void BlockFormattingContext::layout_block_level_children(BlockContainer& block_c
|
|||
if (child_box.is_absolutely_positioned())
|
||||
return IterationDecision::Continue;
|
||||
|
||||
// NOTE: ListItemMarkerBoxes are placed by their corresponding ListItemBox.
|
||||
if (is<ListItemMarkerBox>(child_box))
|
||||
return IterationDecision::Continue;
|
||||
|
||||
if (child_box.is_floating()) {
|
||||
layout_floating_child(child_box, block_container);
|
||||
return IterationDecision::Continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue