mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 01:56:38 +00:00
LibWeb: Implement <desc> SVG element
This commit is contained in:
parent
bb37451fe5
commit
2d90317c20
Notes:
sideshowbarker
2024-07-16 23:51:07 +09:00
Author: https://github.com/jamierocks
Commit: 2d90317c20
Pull-request: https://github.com/SerenityOS/serenity/pull/23974
Reviewed-by: https://github.com/MacDue
9 changed files with 71 additions and 0 deletions
|
@ -87,6 +87,7 @@
|
|||
#include <LibWeb/SVG/SVGCircleElement.h>
|
||||
#include <LibWeb/SVG/SVGClipPathElement.h>
|
||||
#include <LibWeb/SVG/SVGDefsElement.h>
|
||||
#include <LibWeb/SVG/SVGDescElement.h>
|
||||
#include <LibWeb/SVG/SVGEllipseElement.h>
|
||||
#include <LibWeb/SVG/SVGForeignObjectElement.h>
|
||||
#include <LibWeb/SVG/SVGGElement.h>
|
||||
|
@ -439,6 +440,8 @@ static JS::GCPtr<SVG::SVGElement> create_svg_element(JS::Realm& realm, Document&
|
|||
return realm.heap().allocate<SVG::SVGCircleElement>(realm, document, move(qualified_name));
|
||||
if (local_name.equals_ignoring_ascii_case(SVG::TagNames::defs))
|
||||
return realm.heap().allocate<SVG::SVGDefsElement>(realm, document, move(qualified_name));
|
||||
if (local_name == SVG::TagNames::desc)
|
||||
return realm.heap().allocate<SVG::SVGDescElement>(realm, document, move(qualified_name));
|
||||
if (local_name == SVG::TagNames::ellipse)
|
||||
return realm.heap().allocate<SVG::SVGEllipseElement>(realm, document, move(qualified_name));
|
||||
if (local_name.equals_ignoring_ascii_case(SVG::TagNames::foreignObject))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue