1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:37:36 +00:00

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 :^)
This commit is contained in:
Andrew Kaster 2022-10-07 16:45:09 -06:00 committed by Andreas Kling
parent 0265041d44
commit 67ceba2e6a
123 changed files with 236 additions and 14 deletions

View file

@ -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;

View file

@ -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 {
};

View file

@ -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();

View file

@ -1,5 +1,7 @@
#import <SVG/SVGElement.idl>
// https://svgwg.org/svg2-draft/types.html#InterfaceSVGGraphicsElement
[Exposed=Window]
interface SVGGraphicsElement : SVGElement {
};

View file

@ -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;

View file

@ -1,5 +1,7 @@
#import <SVG/SVGGeometryElement.idl>
// https://svgwg.org/svg2-draft/paths.html#InterfaceSVGPathElement
[Exposed=Window]
interface SVGPathElement : SVGGeometryElement {
};

View file

@ -1,5 +1,7 @@
#import <SVG/SVGGraphicsElement.idl>
// https://svgwg.org/svg2-draft/struct.html#InterfaceSVGSVGElement
[Exposed=Window]
interface SVGSVGElement : SVGGraphicsElement {
};