mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 18:50:50 +00:00
LibWeb: Rename Layout::Node::paintable() to first_paintable()
Layout node is allowed to have multiple corresponding paintables, so first_paintable() is more explicit name for getter that returns first paintable.
This commit is contained in:
parent
7d22b1c5c8
commit
c690fb9df3
Notes:
github-actions[bot]
2024-10-16 18:26:47 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: c690fb9df3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1829
15 changed files with 42 additions and 42 deletions
|
@ -381,9 +381,9 @@ void dump_tree(StringBuilder& builder, Layout::Node const& layout_node, bool sho
|
|||
}
|
||||
}
|
||||
|
||||
if (is<Layout::InlineNode>(layout_node) && layout_node.paintable()) {
|
||||
if (is<Layout::InlineNode>(layout_node) && layout_node.first_paintable()) {
|
||||
auto const& inline_node = static_cast<Layout::InlineNode const&>(layout_node);
|
||||
auto const& inline_paintable = static_cast<Painting::InlinePaintable const&>(*inline_node.paintable());
|
||||
auto const& inline_paintable = static_cast<Painting::InlinePaintable const&>(*inline_node.first_paintable());
|
||||
auto const& fragments = inline_paintable.fragments();
|
||||
for (size_t fragment_index = 0; fragment_index < fragments.size(); ++fragment_index) {
|
||||
auto const& fragment = fragments[fragment_index];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue