mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-24 11:21:34 +00:00
LibWeb/DOM: Move pseudo-element scroll offsets into PseudoElement
This commit is contained in:
parent
2c7310553a
commit
f98312d022
Notes:
github-actions[bot]
2025-06-19 11:36:37 +00:00
Author: https://github.com/AtkinsSJ
Commit: f98312d022
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5132
Reviewed-by: https://github.com/tcl3
4 changed files with 33 additions and 19 deletions
|
@ -35,6 +35,9 @@ class PseudoElement : public JS::Cell {
|
|||
CSS::CountersSet& ensure_counters_set();
|
||||
void set_counters_set(OwnPtr<CSS::CountersSet>&&);
|
||||
|
||||
CSSPixelPoint scroll_offset() const { return m_scroll_offset; }
|
||||
void set_scroll_offset(CSSPixelPoint value) { m_scroll_offset = value; }
|
||||
|
||||
virtual void visit_edges(JS::Cell::Visitor&) override;
|
||||
|
||||
private:
|
||||
|
@ -43,6 +46,7 @@ private:
|
|||
GC::Ptr<CSS::ComputedProperties> m_computed_properties;
|
||||
HashMap<FlyString, CSS::StyleProperty> m_custom_properties;
|
||||
OwnPtr<CSS::CountersSet> m_counters_set;
|
||||
CSSPixelPoint m_scroll_offset {};
|
||||
};
|
||||
|
||||
// https://drafts.csswg.org/css-view-transitions/#pseudo-element-tree
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue