mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibWeb: Make CSSStyleDeclaration GC-allocated
This commit is contained in:
parent
12042f0757
commit
72bacba97b
Notes:
sideshowbarker
2024-07-17 07:28:59 +09:00
Author: https://github.com/awesomekling
Commit: 72bacba97b
Pull-request: https://github.com/SerenityOS/serenity/pull/14816
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/linusg ✅
18 changed files with 146 additions and 129 deletions
|
@ -11,11 +11,11 @@
|
|||
namespace Web::CSS {
|
||||
|
||||
class ResolvedCSSStyleDeclaration final : public CSSStyleDeclaration {
|
||||
JS_OBJECT(ResolvedCSSStyleDeclaration, CSSStyleDeclaration);
|
||||
|
||||
public:
|
||||
static NonnullRefPtr<ResolvedCSSStyleDeclaration> create(DOM::Element& element)
|
||||
{
|
||||
return adopt_ref(*new ResolvedCSSStyleDeclaration(element));
|
||||
}
|
||||
static ResolvedCSSStyleDeclaration* create(DOM::Element& element);
|
||||
explicit ResolvedCSSStyleDeclaration(DOM::Element&);
|
||||
|
||||
virtual ~ResolvedCSSStyleDeclaration() override = default;
|
||||
|
||||
|
@ -28,8 +28,6 @@ public:
|
|||
virtual String serialized() const override;
|
||||
|
||||
private:
|
||||
explicit ResolvedCSSStyleDeclaration(DOM::Element&);
|
||||
|
||||
RefPtr<StyleValue> style_value_for_property(Layout::NodeWithStyle const&, PropertyID) const;
|
||||
|
||||
NonnullRefPtr<DOM::Element> m_element;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue