mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +00:00
LibWeb: Tweak a comment in Layout::TreeBuilder for accuracy
This commit is contained in:
parent
e424e4749f
commit
127274fd42
Notes:
sideshowbarker
2024-07-19 01:11:58 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/127274fd422
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ void TreeBuilder::create_layout_tree(DOM::Node& dom_node)
|
|||
insertion_point.append_child(*layout_node);
|
||||
insertion_point.set_children_are_inline(true);
|
||||
} else {
|
||||
// Blocks can't be inserted into an inline parent, so find the nearest non-inline ancestor.
|
||||
// Non-inlines can't be inserted into an inline parent, so find the nearest non-inline ancestor.
|
||||
auto& nearest_non_inline_ancestor = [&]() -> Layout::Node& {
|
||||
for (ssize_t i = m_parent_stack.size() - 1; i >= 0; --i) {
|
||||
if (!m_parent_stack[i]->is_inline())
|
||||
|
|
Loading…
Add table
Reference in a new issue