mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-25 10:48:53 +00:00
LibWeb/SVG: Add missing SVGGElement IDL file
This commit is contained in:
parent
e2f599ebee
commit
ea61e189eb
Notes:
github-actions[bot]
2024-08-17 05:44:44 +00:00
Author: https://github.com/jamierocks
Commit: ea61e189eb
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1090
6 changed files with 19 additions and 0 deletions
|
@ -282,6 +282,7 @@ standard_idl_files = [
|
||||||
"//Userland/Libraries/LibWeb/SVG/SVGElement.idl",
|
"//Userland/Libraries/LibWeb/SVG/SVGElement.idl",
|
||||||
"//Userland/Libraries/LibWeb/SVG/SVGEllipseElement.idl",
|
"//Userland/Libraries/LibWeb/SVG/SVGEllipseElement.idl",
|
||||||
"//Userland/Libraries/LibWeb/SVG/SVGForeignObjectElement.idl",
|
"//Userland/Libraries/LibWeb/SVG/SVGForeignObjectElement.idl",
|
||||||
|
"//Userland/Libraries/LibWeb/SVG/SVGGElement.idl",
|
||||||
"//Userland/Libraries/LibWeb/SVG/SVGGeometryElement.idl",
|
"//Userland/Libraries/LibWeb/SVG/SVGGeometryElement.idl",
|
||||||
"//Userland/Libraries/LibWeb/SVG/SVGGradientElement.idl",
|
"//Userland/Libraries/LibWeb/SVG/SVGGradientElement.idl",
|
||||||
"//Userland/Libraries/LibWeb/SVG/SVGGraphicsElement.idl",
|
"//Userland/Libraries/LibWeb/SVG/SVGGraphicsElement.idl",
|
||||||
|
|
|
@ -279,6 +279,7 @@ SVGDescElement
|
||||||
SVGElement
|
SVGElement
|
||||||
SVGEllipseElement
|
SVGEllipseElement
|
||||||
SVGForeignObjectElement
|
SVGForeignObjectElement
|
||||||
|
SVGGElement
|
||||||
SVGGeometryElement
|
SVGGeometryElement
|
||||||
SVGGradientElement
|
SVGGradientElement
|
||||||
SVGGraphicsElement
|
SVGGraphicsElement
|
||||||
|
|
|
@ -5,6 +5,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <AK/StringBuilder.h>
|
#include <AK/StringBuilder.h>
|
||||||
|
#include <LibWeb/Bindings/Intrinsics.h>
|
||||||
|
#include <LibWeb/Bindings/SVGGElementPrototype.h>
|
||||||
#include <LibWeb/DOM/Document.h>
|
#include <LibWeb/DOM/Document.h>
|
||||||
#include <LibWeb/Layout/SVGGraphicsBox.h>
|
#include <LibWeb/Layout/SVGGraphicsBox.h>
|
||||||
#include <LibWeb/SVG/SVGGElement.h>
|
#include <LibWeb/SVG/SVGGElement.h>
|
||||||
|
@ -18,6 +20,12 @@ SVGGElement::SVGGElement(DOM::Document& document, DOM::QualifiedName qualified_n
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SVGGElement::initialize(JS::Realm& realm)
|
||||||
|
{
|
||||||
|
Base::initialize(realm);
|
||||||
|
WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGGElement);
|
||||||
|
}
|
||||||
|
|
||||||
JS::GCPtr<Layout::Node> SVGGElement::create_layout_node(NonnullRefPtr<CSS::StyleProperties> style)
|
JS::GCPtr<Layout::Node> SVGGElement::create_layout_node(NonnullRefPtr<CSS::StyleProperties> style)
|
||||||
{
|
{
|
||||||
return heap().allocate_without_realm<Layout::SVGGraphicsBox>(document(), *this, move(style));
|
return heap().allocate_without_realm<Layout::SVGGraphicsBox>(document(), *this, move(style));
|
||||||
|
|
|
@ -21,6 +21,8 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
SVGGElement(DOM::Document&, DOM::QualifiedName);
|
SVGGElement(DOM::Document&, DOM::QualifiedName);
|
||||||
|
|
||||||
|
virtual void initialize(JS::Realm&) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
6
Userland/Libraries/LibWeb/SVG/SVGGElement.idl
Normal file
6
Userland/Libraries/LibWeb/SVG/SVGGElement.idl
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#import <SVG/SVGGraphicsElement.idl>
|
||||||
|
|
||||||
|
// https://svgwg.org/svg2-draft/struct.html#InterfaceSVGGElement
|
||||||
|
[Exposed=Window]
|
||||||
|
interface SVGGElement : SVGGraphicsElement {
|
||||||
|
};
|
|
@ -268,6 +268,7 @@ libweb_js_bindings(SVG/SVGClipPathElement)
|
||||||
libweb_js_bindings(SVG/SVGDefsElement)
|
libweb_js_bindings(SVG/SVGDefsElement)
|
||||||
libweb_js_bindings(SVG/SVGDescElement)
|
libweb_js_bindings(SVG/SVGDescElement)
|
||||||
libweb_js_bindings(SVG/SVGElement)
|
libweb_js_bindings(SVG/SVGElement)
|
||||||
|
libweb_js_bindings(SVG/SVGGElement)
|
||||||
libweb_js_bindings(SVG/SVGGeometryElement)
|
libweb_js_bindings(SVG/SVGGeometryElement)
|
||||||
libweb_js_bindings(SVG/SVGGradientElement)
|
libweb_js_bindings(SVG/SVGGradientElement)
|
||||||
libweb_js_bindings(SVG/SVGGraphicsElement)
|
libweb_js_bindings(SVG/SVGGraphicsElement)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue