mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-23 10:50:49 +00:00
LibWeb: Add tightly-typed DOM node accessors for Layout::ListItemBox
ListItemBox is always constructed with a non-null DOM::Element, so we can make dom_node() return a DOM::Element&.
This commit is contained in:
parent
5a7d3e3cc1
commit
ca28a118ae
Notes:
sideshowbarker
2024-07-18 03:28:54 +09:00
Author: https://github.com/awesomekling
Commit: ca28a118ae
1 changed files with 3 additions and 0 deletions
|
@ -20,6 +20,9 @@ public:
|
|||
|
||||
void layout_marker();
|
||||
|
||||
DOM::Element& dom_node() { return static_cast<DOM::Element&>(*BlockBox::dom_node()); }
|
||||
DOM::Element const& dom_node() const { return static_cast<DOM::Element const&>(*BlockBox::dom_node()); }
|
||||
|
||||
private:
|
||||
RefPtr<ListItemMarkerBox> m_marker;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue