mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibHTML: Add a convenient way to get from any layout node to the root
This commit is contained in:
parent
2946b0e2d4
commit
715d7a8532
Notes:
sideshowbarker
2024-07-19 11:23:03 +09:00
Author: https://github.com/awesomekling
Commit: 715d7a8532
4 changed files with 31 additions and 0 deletions
|
@ -239,6 +239,11 @@ const LayoutDocument* Document::layout_node() const
|
|||
return static_cast<const LayoutDocument*>(Node::layout_node());
|
||||
}
|
||||
|
||||
LayoutDocument* Document::layout_node()
|
||||
{
|
||||
return static_cast<LayoutDocument*>(Node::layout_node());
|
||||
}
|
||||
|
||||
void Document::set_hovered_node(Node* node)
|
||||
{
|
||||
if (m_hovered_node == node)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue