mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-24 19:28:48 +00:00
LibWeb: Make [resolve,inherit]_counters() take AbstractElement
This is one of those cases where the spec says "element" and means "element or pseudo-element". The easiest way to handle both is to make these be free functions that take an AbstractElement, and then give AbstractElement some helper methods so that the caller doesn't have to care which it's dealing with. There are some FIXMEs here because PseudoElement doesn't have a CountersSet yet, and because the CountersSet currently uses a UniqueNodeID to identify counter sources, which doesn't support pseudo-elements.
This commit is contained in:
parent
ce380a59c7
commit
a57595faf5
Notes:
github-actions[bot]
2025-06-19 11:37:37 +00:00
Author: https://github.com/AtkinsSJ
Commit: a57595faf5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5132
Reviewed-by: https://github.com/tcl3
5 changed files with 117 additions and 103 deletions
|
@ -418,10 +418,9 @@ public:
|
|||
bool rendered_in_top_layer() const { return m_rendered_in_top_layer; }
|
||||
|
||||
bool has_non_empty_counters_set() const { return m_counters_set; }
|
||||
Optional<CSS::CountersSet const&> counters_set();
|
||||
Optional<CSS::CountersSet const&> counters_set() const;
|
||||
CSS::CountersSet& ensure_counters_set();
|
||||
void resolve_counters(CSS::ComputedProperties&);
|
||||
void inherit_counters();
|
||||
void set_counters_set(OwnPtr<CSS::CountersSet>&&);
|
||||
|
||||
ProximityToTheViewport proximity_to_the_viewport() const { return m_proximity_to_the_viewport; }
|
||||
void determine_proximity_to_the_viewport();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue