mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibWeb+LibGfx: Implement SVGFEMorphologyElement
This filter primitive is used to erode or dilate an image.
This commit is contained in:
parent
837d5fb7ea
commit
36c6079dbc
Notes:
github-actions[bot]
2025-11-15 15:09:46 +00:00
Author: https://github.com/tcl3
Commit: 36c6079dbc
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6831
17 changed files with 235 additions and 0 deletions
|
|
@ -106,6 +106,7 @@
|
|||
#include <LibWeb/SVG/SVGFEImageElement.h>
|
||||
#include <LibWeb/SVG/SVGFEMergeElement.h>
|
||||
#include <LibWeb/SVG/SVGFEMergeNodeElement.h>
|
||||
#include <LibWeb/SVG/SVGFEMorphologyElement.h>
|
||||
#include <LibWeb/SVG/SVGFEOffsetElement.h>
|
||||
#include <LibWeb/SVG/SVGFilterElement.h>
|
||||
#include <LibWeb/SVG/SVGForeignObjectElement.h>
|
||||
|
|
@ -504,6 +505,8 @@ static GC::Ref<SVG::SVGElement> create_svg_element(JS::Realm& realm, Document& d
|
|||
return realm.create<SVG::SVGFEMergeElement>(document, move(qualified_name));
|
||||
if (local_name == SVG::TagNames::feMergeNode)
|
||||
return realm.create<SVG::SVGFEMergeNodeElement>(document, move(qualified_name));
|
||||
if (local_name == SVG::TagNames::feMorphology)
|
||||
return realm.create<SVG::SVGFEMorphologyElement>(document, move(qualified_name));
|
||||
if (local_name == SVG::TagNames::feOffset)
|
||||
return realm.create<SVG::SVGFEOffsetElement>(document, move(qualified_name));
|
||||
if (local_name == SVG::TagNames::filter)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue