Skip to content

Commit

Permalink
update SVG spec
Browse files Browse the repository at this point in the history
  • Loading branch information
saschanaz committed Apr 5, 2017
1 parent 52e173d commit 89a1586
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 22 deletions.
32 changes: 20 additions & 12 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8843,6 +8843,20 @@ declare var SVGStringList: {
new (): SVGStringList;
}

interface SVGUnitTypes {
readonly SVG_UNIT_TYPE_UNKNOWN: number;
readonly SVG_UNIT_TYPE_USERSPACEONUSE: number;
readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;
}

declare var SVGUnitTypes: {
prototype: SVGUnitTypes;
new (): SVGUnitTypes;
readonly SVG_UNIT_TYPE_UNKNOWN: number;
readonly SVG_UNIT_TYPE_USERSPACEONUSE: number;
readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;
}

interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, SVGZoomAndPan, WindowEventHandlers {
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
Expand Down Expand Up @@ -8973,12 +8987,12 @@ declare var SVGUseElement: {
new (): SVGUseElement;
}

interface SVGElementInstance extends ShadowRoot {
interface SVGUseElementShadowRoot extends ShadowRoot {
}

declare var SVGElementInstance: {
prototype: SVGElementInstance;
new (): SVGElementInstance;
declare var SVGUseElementShadowRoot: {
prototype: SVGUseElementShadowRoot;
new (): SVGUseElementShadowRoot;
}

interface ShadowAnimation extends Animation {
Expand Down Expand Up @@ -9417,7 +9431,7 @@ declare var SVGSolidcolorElement: {
new (): SVGSolidcolorElement;
}

interface SVGGradientElement extends SVGElement, SVGURIReference, SVGUnitTypes {
interface SVGGradientElement extends SVGElement, SVGURIReference {
readonly gradientUnits: SVGAnimatedEnumeration;
readonly gradientTransform: SVGAnimatedTransformList;
readonly spreadMethod: SVGAnimatedEnumeration;
Expand Down Expand Up @@ -9516,7 +9530,7 @@ declare var SVGStopElement: {
new (): SVGStopElement;
}

interface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGURIReference, SVGUnitTypes {
interface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGURIReference {
readonly patternUnits: SVGAnimatedEnumeration;
readonly patternContentUnits: SVGAnimatedEnumeration;
readonly patternTransform: SVGAnimatedTransformList;
Expand Down Expand Up @@ -12007,12 +12021,6 @@ interface ConstrainablePattern {
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
}

interface SVGUnitTypes {
readonly SVG_UNIT_TYPE_UNKNOWN: number;
readonly SVG_UNIT_TYPE_USERSPACEONUSE: number;
readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;
}

interface SVGTests {
readonly requiredExtensions: SVGStringList;
readonly systemLanguage: SVGStringList;
Expand Down
18 changes: 8 additions & 10 deletions inputfiles/browser.webidl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8171,6 +8171,13 @@
<property name="numberOfItems" read-only="1" type="unsigned long"/>
</properties>
</interface>
<interface name="SVGUnitTypes" extends="Object">
<constants>
<constant name="SVG_UNIT_TYPE_UNKNOWN" type="unsigned short" value="0"/>
<constant name="SVG_UNIT_TYPE_USERSPACEONUSE" type="unsigned short" value="1"/>
<constant name="SVG_UNIT_TYPE_OBJECTBOUNDINGBOX" type="unsigned short" value="2"/>
</constants>
</interface>
<interface name="SVGSVGElement" extends="SVGGraphicsElement">
<methods>
<method name="getIntersectionList" type="NodeList">
Expand Down Expand Up @@ -8244,7 +8251,7 @@
</properties>
<implements>SVGURIReference</implements>
</interface>
<interface name="SVGElementInstance" extends="ShadowRoot"/>
<interface name="SVGUseElementShadowRoot" extends="ShadowRoot"/>
<interface name="ShadowAnimation" extends="Animation">
<constructor>
<param name="source" type="Animation"/>
Expand Down Expand Up @@ -8579,7 +8586,6 @@
<property name="spreadMethod" read-only="1" type="SVGAnimatedEnumeration"/>
</properties>
<implements>SVGURIReference</implements>
<implements>SVGUnitTypes</implements>
</interface>
<interface name="SVGLinearGradientElement" extends="SVGGradientElement">
<properties>
Expand Down Expand Up @@ -8619,7 +8625,6 @@
</properties>
<implements>SVGFitToViewBox</implements>
<implements>SVGURIReference</implements>
<implements>SVGUnitTypes</implements>
</interface>
<interface name="SVGHatchElement" extends="SVGElement"/>
<interface name="SVGHatchpathElement" extends="SVGElement"/>
Expand Down Expand Up @@ -11376,13 +11381,6 @@
<event name="overconstrained" type="OverconstrainedErrorEvent"/>
</events>
</interface>
<interface name="SVGUnitTypes" extends="Object" no-interface-object="1">
<constants>
<constant name="SVG_UNIT_TYPE_UNKNOWN" type="unsigned short" value="0"/>
<constant name="SVG_UNIT_TYPE_USERSPACEONUSE" type="unsigned short" value="1"/>
<constant name="SVG_UNIT_TYPE_OBJECTBOUNDINGBOX" type="unsigned short" value="2"/>
</constants>
</interface>
<interface name="SVGTests" extends="Object" no-interface-object="1">
<properties>
<property name="requiredExtensions" read-only="1" type="SVGStringList"/>
Expand Down

0 comments on commit 89a1586

Please sign in to comment.