mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-08 04:02:52 +00:00
LibWeb: Make CSSRuleList GC-allocated
This commit is contained in:
parent
5366924f11
commit
5d6cb9cbdb
Notes:
sideshowbarker
2024-07-17 07:29:07 +09:00
Author: https://github.com/awesomekling
Commit: 5d6cb9cbdb
Pull-request: https://github.com/SerenityOS/serenity/pull/14816
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/linusg ✅
11 changed files with 50 additions and 29 deletions
|
@ -20,7 +20,7 @@ CSSStyleSheet* CSSStyleSheet::create(Bindings::WindowObject& window_object, Nonn
|
|||
|
||||
CSSStyleSheet::CSSStyleSheet(Bindings::WindowObject& window_object, NonnullRefPtrVector<CSSRule> rules, Optional<AK::URL> location)
|
||||
: StyleSheet(window_object)
|
||||
, m_rules(CSSRuleList::create(move(rules)))
|
||||
, m_rules(CSSRuleList::create(window_object, move(rules)))
|
||||
{
|
||||
set_prototype(&window_object.ensure_web_prototype<Bindings::CSSStyleSheetPrototype>("CSSStyleSheet"));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue