mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb: Remove reference counting for CSS::StyleProperties
`AK::CopyOnWrite` already does reference counting, so there is no need to do it again.
This commit is contained in:
committed by
Andreas Kling
parent
e636f3976d
commit
07cd7d479f
Notes:
github-actions[bot]
2024-10-27 12:27:19 +00:00
Author: https://github.com/yyny Commit: https://github.com/LadybirdBrowser/ladybird/commit/07cd7d479fa Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1980
@@ -178,7 +178,7 @@ void SVGImageElement::fetch_the_document(URL::URL const& url)
|
||||
}
|
||||
}
|
||||
|
||||
JS::GCPtr<Layout::Node> SVGImageElement::create_layout_node(NonnullRefPtr<CSS::StyleProperties> style)
|
||||
JS::GCPtr<Layout::Node> SVGImageElement::create_layout_node(CSS::StyleProperties style)
|
||||
{
|
||||
return heap().allocate_without_realm<Layout::SVGImageBox>(document(), *this, move(style));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user