diff options
author | Andrew Kaster <akaster@serenityos.org> | 2022-10-07 16:45:09 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-10-09 10:14:57 +0200 |
commit | 67ceba2e6a98c280eb685dfa7559beef09a35409 (patch) | |
tree | 78eb5e696ca22b9e5acbdf46f7d20068c7db206d /Userland/Libraries/LibWeb/SVG | |
parent | 0265041d44b313e18d097d30fb8e204fa367c5f9 (diff) | |
download | serenity-67ceba2e6a98c280eb685dfa7559beef09a35409.zip |
LibWeb: Add Exposed attribute and IDL spec links where missing
The intent is to use these to autogenerate prototype declarations for
Window and WorkerGlobalScope classes.
And the spec links are just nice to have :^)
Diffstat (limited to 'Userland/Libraries/LibWeb/SVG')
7 files changed, 14 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/SVG/SVGAnimatedLength.idl b/Userland/Libraries/LibWeb/SVG/SVGAnimatedLength.idl index 3f20ce712f..81dd206ca8 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGAnimatedLength.idl +++ b/Userland/Libraries/LibWeb/SVG/SVGAnimatedLength.idl @@ -1,5 +1,7 @@ #import <SVG/SVGLength.idl> +// https://svgwg.org/svg2-draft/types.html#InterfaceSVGAnimatedLength +[Exposed=Window] interface SVGAnimatedLength { readonly attribute SVGLength baseVal; readonly attribute SVGLength animVal; diff --git a/Userland/Libraries/LibWeb/SVG/SVGElement.idl b/Userland/Libraries/LibWeb/SVG/SVGElement.idl index 45f932b0b6..6e69c7bd15 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGElement.idl +++ b/Userland/Libraries/LibWeb/SVG/SVGElement.idl @@ -2,6 +2,8 @@ #import <HTML/HTMLElement.idl> #import <HTML/DOMStringMap.idl> +// https://svgwg.org/svg2-draft/types.html#InterfaceSVGElement +[Exposed=Window] interface SVGElement : Element { }; diff --git a/Userland/Libraries/LibWeb/SVG/SVGGeometryElement.idl b/Userland/Libraries/LibWeb/SVG/SVGGeometryElement.idl index 047fddf84c..33b712b2a6 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGGeometryElement.idl +++ b/Userland/Libraries/LibWeb/SVG/SVGGeometryElement.idl @@ -1,6 +1,8 @@ #import <Geometry/DOMPoint.idl> #import <SVG/SVGGraphicsElement.idl> +// https://svgwg.org/svg2-draft/types.html#InterfaceSVGGeometryElement +[Exposed=Window] interface SVGGeometryElement : SVGGraphicsElement { float getTotalLength(); diff --git a/Userland/Libraries/LibWeb/SVG/SVGGraphicsElement.idl b/Userland/Libraries/LibWeb/SVG/SVGGraphicsElement.idl index bd01e9c8b5..49cea98a23 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGGraphicsElement.idl +++ b/Userland/Libraries/LibWeb/SVG/SVGGraphicsElement.idl @@ -1,5 +1,7 @@ #import <SVG/SVGElement.idl> +// https://svgwg.org/svg2-draft/types.html#InterfaceSVGGraphicsElement +[Exposed=Window] interface SVGGraphicsElement : SVGElement { }; diff --git a/Userland/Libraries/LibWeb/SVG/SVGLength.idl b/Userland/Libraries/LibWeb/SVG/SVGLength.idl index 08e4e29e85..5924619ec6 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGLength.idl +++ b/Userland/Libraries/LibWeb/SVG/SVGLength.idl @@ -1,3 +1,5 @@ +// https://svgwg.org/svg2-draft/types.html#InterfaceSVGLength +[Exposed=Window] interface SVGLength { const unsigned short SVG_LENGTHTYPE_UNKNOWN = 0; const unsigned short SVG_LENGTHTYPE_NUMBER = 1; diff --git a/Userland/Libraries/LibWeb/SVG/SVGPathElement.idl b/Userland/Libraries/LibWeb/SVG/SVGPathElement.idl index eeec8717fc..83d657a081 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGPathElement.idl +++ b/Userland/Libraries/LibWeb/SVG/SVGPathElement.idl @@ -1,5 +1,7 @@ #import <SVG/SVGGeometryElement.idl> +// https://svgwg.org/svg2-draft/paths.html#InterfaceSVGPathElement +[Exposed=Window] interface SVGPathElement : SVGGeometryElement { }; diff --git a/Userland/Libraries/LibWeb/SVG/SVGSVGElement.idl b/Userland/Libraries/LibWeb/SVG/SVGSVGElement.idl index 92561e6ce5..a060320b28 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGSVGElement.idl +++ b/Userland/Libraries/LibWeb/SVG/SVGSVGElement.idl @@ -1,5 +1,7 @@ #import <SVG/SVGGraphicsElement.idl> +// https://svgwg.org/svg2-draft/struct.html#InterfaceSVGSVGElement +[Exposed=Window] interface SVGSVGElement : SVGGraphicsElement { }; |