mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibWeb/SVG: Implement SVGImageElement
This element allows images to be embedded within SVGs.
This commit is contained in:
parent
267420d5aa
commit
03bbc2b111
Notes:
github-actions[bot]
2024-08-29 04:29:33 +00:00
Author: https://github.com/tcl3
Commit: 03bbc2b111
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1198
17 changed files with 490 additions and 8 deletions
|
@ -92,6 +92,7 @@
|
|||
#include <LibWeb/SVG/SVGEllipseElement.h>
|
||||
#include <LibWeb/SVG/SVGForeignObjectElement.h>
|
||||
#include <LibWeb/SVG/SVGGElement.h>
|
||||
#include <LibWeb/SVG/SVGImageElement.h>
|
||||
#include <LibWeb/SVG/SVGLineElement.h>
|
||||
#include <LibWeb/SVG/SVGLinearGradientElement.h>
|
||||
#include <LibWeb/SVG/SVGMaskElement.h>
|
||||
|
@ -488,6 +489,8 @@ static JS::GCPtr<SVG::SVGElement> create_svg_element(JS::Realm& realm, Document&
|
|||
return realm.heap().allocate<SVG::SVGScriptElement>(realm, document, move(qualified_name));
|
||||
if (local_name == SVG::TagNames::a)
|
||||
return realm.heap().allocate<SVG::SVGAElement>(realm, document, move(qualified_name));
|
||||
if (local_name == SVG::TagNames::image)
|
||||
return realm.heap().allocate<SVG::SVGImageElement>(realm, document, move(qualified_name));
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue