mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 20:42:21 +00:00
LibWeb: Make CSSRule and all its subclasses GC-allocated
This commit is contained in:
parent
5d6cb9cbdb
commit
12042f0757
Notes:
sideshowbarker
2024-07-17 07:29:03 +09:00
Author: https://github.com/awesomekling
Commit: 12042f0757
Pull-request: https://github.com/SerenityOS/serenity/pull/14816
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/linusg ✅
39 changed files with 338 additions and 236 deletions
|
@ -87,6 +87,27 @@ static bool impl_is_wrapper(Type const& type)
|
|||
if (type.name == "CSSRuleList"sv)
|
||||
return true;
|
||||
|
||||
if (type.name == "CSSRule"sv)
|
||||
return true;
|
||||
|
||||
if (type.name == "CSSStyleRule"sv)
|
||||
return true;
|
||||
|
||||
if (type.name == "CSSFontFaceRule"sv)
|
||||
return true;
|
||||
|
||||
if (type.name == "CSSConditionRule"sv)
|
||||
return true;
|
||||
|
||||
if (type.name == "CSSGroupingRule"sv)
|
||||
return true;
|
||||
|
||||
if (type.name == "CSSMediaRule"sv)
|
||||
return true;
|
||||
|
||||
if (type.name == "CSSImportRule"sv)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -2884,7 +2905,6 @@ void generate_constructor_implementation(IDL::Interface const& interface)
|
|||
#if __has_include(<LibWeb/Bindings/@wrapper_class@.h>)
|
||||
#include <LibWeb/Bindings/@wrapper_class@.h>
|
||||
#endif
|
||||
#include <LibWeb/Bindings/CSSRuleWrapperFactory.h>
|
||||
#include <LibWeb/Bindings/EventTargetWrapperFactory.h>
|
||||
#include <LibWeb/Bindings/EventWrapperFactory.h>
|
||||
#include <LibWeb/Bindings/ExceptionOrUtils.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue