mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-28 13:18:19 +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
|
@ -1389,14 +1389,14 @@ void Document::set_inspected_node(Node* node, Optional<CSS::Selector::PseudoElem
|
|||
if (m_inspected_node.ptr() == node && m_inspected_pseudo_element == pseudo_element)
|
||||
return;
|
||||
|
||||
if (auto layout_node = inspected_layout_node(); layout_node && layout_node->paintable())
|
||||
layout_node->paintable()->set_needs_display();
|
||||
if (auto layout_node = inspected_layout_node(); layout_node && layout_node->first_paintable())
|
||||
layout_node->first_paintable()->set_needs_display();
|
||||
|
||||
m_inspected_node = node;
|
||||
m_inspected_pseudo_element = pseudo_element;
|
||||
|
||||
if (auto layout_node = inspected_layout_node(); layout_node && layout_node->paintable())
|
||||
layout_node->paintable()->set_needs_display();
|
||||
if (auto layout_node = inspected_layout_node(); layout_node && layout_node->first_paintable())
|
||||
layout_node->first_paintable()->set_needs_display();
|
||||
}
|
||||
|
||||
Layout::Node* Document::inspected_layout_node()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue