mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:57:35 +00:00
LibWeb: Add SVG <rect>
element and test case :^)
This commit is contained in:
parent
aa2f20fb60
commit
1dde6a0a2b
11 changed files with 225 additions and 1 deletions
|
@ -78,6 +78,7 @@
|
|||
#include <LibWeb/HTML/HTMLVideoElement.h>
|
||||
#include <LibWeb/SVG/SVGGElement.h>
|
||||
#include <LibWeb/SVG/SVGPathElement.h>
|
||||
#include <LibWeb/SVG/SVGRectElement.h>
|
||||
#include <LibWeb/SVG/SVGSVGElement.h>
|
||||
#include <LibWeb/SVG/TagNames.h>
|
||||
|
||||
|
@ -236,6 +237,8 @@ NonnullRefPtr<Element> create_element(Document& document, const FlyString& tag_n
|
|||
return adopt_ref(*new SVG::SVGSVGElement(document, move(qualified_name)));
|
||||
if (lowercase_tag_name == SVG::TagNames::path)
|
||||
return adopt_ref(*new SVG::SVGPathElement(document, move(qualified_name)));
|
||||
if (lowercase_tag_name == SVG::TagNames::rect)
|
||||
return adopt_ref(*new SVG::SVGRectElement(document, move(qualified_name)));
|
||||
if (lowercase_tag_name == SVG::TagNames::g)
|
||||
return adopt_ref(*new SVG::SVGGElement(document, move(qualified_name)));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue