mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-28 14:02:51 +00:00
LibWeb: Use SVGGraphicsBox for <symbol>
and <use>
elements
This allows various SVG properties (like masking) to be applied to these elements.
This commit is contained in:
parent
05f42efc06
commit
15e3b0ebde
Notes:
sideshowbarker
2024-07-17 10:16:43 +09:00
Author: https://github.com/MacDue
Commit: 15e3b0ebde
Pull-request: https://github.com/SerenityOS/serenity/pull/23554
5 changed files with 15 additions and 14 deletions
|
@ -10,6 +10,7 @@
|
|||
#include <LibWeb/DOM/Event.h>
|
||||
#include <LibWeb/DOM/ShadowRoot.h>
|
||||
#include <LibWeb/Layout/Box.h>
|
||||
#include <LibWeb/Layout/SVGGraphicsBox.h>
|
||||
#include <LibWeb/Namespace.h>
|
||||
#include <LibWeb/SVG/AttributeNames.h>
|
||||
#include <LibWeb/SVG/SVGSVGElement.h>
|
||||
|
@ -186,7 +187,7 @@ JS::GCPtr<SVGElement> SVGUseElement::animated_instance_root() const
|
|||
|
||||
JS::GCPtr<Layout::Node> SVGUseElement::create_layout_node(NonnullRefPtr<CSS::StyleProperties> style)
|
||||
{
|
||||
return heap().allocate_without_realm<Layout::Box>(document(), this, move(style));
|
||||
return heap().allocate_without_realm<Layout::SVGGraphicsBox>(document(), *this, move(style));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue