mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:07:35 +00:00
LibWeb: Add SVG <polygon>
element and test case :^)
This commit is contained in:
parent
116a1f485c
commit
2fad940b0b
10 changed files with 114 additions and 1 deletions
|
@ -81,6 +81,7 @@
|
|||
#include <LibWeb/SVG/SVGGElement.h>
|
||||
#include <LibWeb/SVG/SVGLineElement.h>
|
||||
#include <LibWeb/SVG/SVGPathElement.h>
|
||||
#include <LibWeb/SVG/SVGPolygonElement.h>
|
||||
#include <LibWeb/SVG/SVGPolylineElement.h>
|
||||
#include <LibWeb/SVG/SVGRectElement.h>
|
||||
#include <LibWeb/SVG/SVGSVGElement.h>
|
||||
|
@ -247,6 +248,8 @@ NonnullRefPtr<Element> create_element(Document& document, const FlyString& tag_n
|
|||
return adopt_ref(*new SVG::SVGLineElement(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::polygon)
|
||||
return adopt_ref(*new SVG::SVGPolygonElement(document, move(qualified_name)));
|
||||
if (lowercase_tag_name == SVG::TagNames::polyline)
|
||||
return adopt_ref(*new SVG::SVGPolylineElement(document, move(qualified_name)));
|
||||
if (lowercase_tag_name == SVG::TagNames::rect)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue