mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 16:19:23 +00:00
LibWeb/DOM: Give PseudoElement a CountersSet
This is not yet used
This commit is contained in:
parent
23520509cc
commit
67241d6419
Notes:
github-actions[bot]
2025-06-19 11:37:07 +00:00
Author: https://github.com/AtkinsSJ
Commit: 67241d6419
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5132
Reviewed-by: https://github.com/tcl3
2 changed files with 25 additions and 0 deletions
|
@ -23,4 +23,23 @@ void PseudoElement::visit_edges(JS::Cell::Visitor& visitor)
|
|||
visitor.visit(m_layout_node);
|
||||
}
|
||||
|
||||
Optional<CSS::CountersSet const&> PseudoElement::counters_set() const
|
||||
{
|
||||
if (!m_counters_set)
|
||||
return {};
|
||||
return *m_counters_set;
|
||||
}
|
||||
|
||||
CSS::CountersSet& PseudoElement::ensure_counters_set()
|
||||
{
|
||||
if (!m_counters_set)
|
||||
m_counters_set = make<CSS::CountersSet>();
|
||||
return *m_counters_set;
|
||||
}
|
||||
|
||||
void PseudoElement::set_counters_set(OwnPtr<CSS::CountersSet>&& counters_set)
|
||||
{
|
||||
m_counters_set = move(counters_set);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue