mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibWeb: Make StyleSheet and CSSStyleSheet GC-allocated
This commit is contained in:
parent
0fe923e355
commit
5d60212076
Notes:
sideshowbarker
2024-07-17 07:29:15 +09:00
Author: https://github.com/awesomekling
Commit: 5d60212076
Pull-request: https://github.com/SerenityOS/serenity/pull/14816
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/linusg ✅
21 changed files with 166 additions and 96 deletions
|
@ -24,11 +24,12 @@ public:
|
|||
|
||||
void update_a_style_block();
|
||||
|
||||
RefPtr<CSS::CSSStyleSheet> sheet() const;
|
||||
CSS::CSSStyleSheet* sheet();
|
||||
CSS::CSSStyleSheet const* sheet() const;
|
||||
|
||||
private:
|
||||
// https://www.w3.org/TR/cssom/#associated-css-style-sheet
|
||||
RefPtr<CSS::CSSStyleSheet> m_associated_css_style_sheet;
|
||||
JS::Handle<CSS::CSSStyleSheet> m_associated_css_style_sheet;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue