mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +00:00
LibHTML: LayoutBlock::children_are_inline() should check is_inline()
Instead of asking if the first child is not a block, ask if it thinks it's inline.
This commit is contained in:
parent
f5bf8f6380
commit
724754e39a
Notes:
sideshowbarker
2024-07-19 11:43:54 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/724754e39a5
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ void LayoutBlock::render(RenderingContext& context)
|
|||
|
||||
bool LayoutBlock::children_are_inline() const
|
||||
{
|
||||
return first_child() && !first_child()->is_block();
|
||||
return first_child() && first_child()->is_inline();
|
||||
}
|
||||
|
||||
HitTestResult LayoutBlock::hit_test(const Point& position) const
|
||||
|
|
Loading…
Add table
Reference in a new issue