diff options
author | Andreas Kling <kling@serenityos.org> | 2022-02-06 02:15:59 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-06 02:15:59 +0100 |
commit | d30cbf5d726d99abfafbca8d2ea2741f36dab2ac (patch) | |
tree | f99503bd6634ac390684f025ed593801bd4ebbbb /Userland/Libraries/LibWeb/Layout/InlineNode.cpp | |
parent | 3ad08a932c681908eaa5a46760741be1acb964fa (diff) | |
download | serenity-d30cbf5d726d99abfafbca8d2ea2741f36dab2ac.zip |
LibWeb: Remove unnecessary check for 0-sized fragments in InlineNode
We should no longer be generating empty fragments at the start and end
of an InlineNode, so we can drop this check.
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/InlineNode.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/InlineNode.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/InlineNode.cpp b/Userland/Libraries/LibWeb/Layout/InlineNode.cpp index f27badf621..afd320d17c 100644 --- a/Userland/Libraries/LibWeb/Layout/InlineNode.cpp +++ b/Userland/Libraries/LibWeb/Layout/InlineNode.cpp @@ -101,10 +101,6 @@ void InlineNode::for_each_fragment(Callback callback) containing_block()->for_each_fragment([&](auto& fragment) { if (!is_inclusive_ancestor_of(fragment.layout_node())) return IterationDecision::Continue; - // FIXME: This skips the 0-width fragments at the start and end of the InlineNode. - // A better solution would be to not generate them in the first place. - if (fragment.width() == 0 || fragment.height() == 0) - return IterationDecision::Continue; return callback(fragment); }); } |