Remove SVGDefinitionElement interface. Remove conditional processing attributes and SVGTests from elements where they shouldn't be.
authorCameron McCormack <cam@mcc.id.au>
Fri, 11 Jan 2013 16:43:52 +1100
changeset 414 e5fb6a22e70b
parent 413 7463bba69e00
child 415 abd9d798ca7d
Remove SVGDefinitionElement interface. Remove conditional processing attributes and SVGTests from elements where they shouldn't be.
master/changes.html
master/definitions.xml
master/fonts.html
master/idlindex.html
master/interact.html
master/painting.html
master/pservers.html
master/struct.html
master/types.html
--- a/master/changes.html	Fri Jan 11 14:47:20 2013 +1100
+++ b/master/changes.html	Fri Jan 11 16:43:52 2013 +1100
@@ -55,7 +55,7 @@
   <li>Turned SVGLocatable and SVGTransformable into <a>SVGLocatableElement</a> and <a>SVGTransformableElement</a>,
   which directly inherit from <a>SVGElement</a>.</li>
 
-  <li>Added <a>SVGGraphicsElement</a> and <a>SVGDefinitionElement</a> interfaces.</li>
+  <li>Added an <a>SVGGraphicsElement</a> interface.</li>
 
   <li>Added an <a>SVGGeometryElement</a> interface with isPointInFill and isPointInStroke methods.</li>
 
--- a/master/definitions.xml	Fri Jan 11 14:47:20 2013 +1100
+++ b/master/definitions.xml	Fri Jan 11 16:43:52 2013 +1100
@@ -123,7 +123,7 @@
       contentmodel='anyof'
       elementcategories='descriptive, animation, shape'
       elements='text, use'
-      attributecategories='conditional processing, core, presentation, style'
+      attributecategories='core, presentation, style'
       interfaces='SVGClipPathElement'>
     <attribute name='clipPathUnits' elements='clipPath' href='masking.html#ClipPathElementClipPathUnitsAttribute' animatable='yes'/>
   </element>
@@ -146,7 +146,7 @@
       href='interact.html#CursorElement'
       contentmodel='anyof'
       elementcategories='descriptive'
-      attributecategories='core, conditional processing, xlink'
+      attributecategories='core, xlink'
       interfaces='SVGCursorElement'>
     <attribute name='x' href='interact.html#CursorElementXAttribute' animatable='yes'/>
     <attribute name='y' href='interact.html#CursorElementYAttribute' animatable='yes'/>
@@ -159,7 +159,7 @@
     contentmodel='anyof'
     elementcategories='animation, descriptive, shape, structural, gradient'
     elements='a, clipPath, color-profile, cursor, filter, font, font-face, foreignObject, image, marker, mask, pattern, script, style, switch, view, text, altGlyphDef'
-    attributecategories='conditional processing, core, graphical event, presentation, style'
+    attributecategories='core, graphical event, presentation, style'
     interfaces='SVGDefsElement'/>
 
   <element
@@ -417,7 +417,7 @@
       contentmodel='anyof'
       elementcategories='animation, descriptive, shape, structural, gradient'
       elements='a, clipPath, color-profile, cursor, filter, font, font-face, foreignObject, image, marker, mask, pattern, script, style, switch, view, text, altGlyphDef'
-      attributecategories='conditional processing, core, presentation, style'
+      attributecategories='core, presentation, style'
       interfaces='SVGMaskElement'>
     <attribute name='x' elements='mask' href='masking.html#MaskElementXAttribute' animatable='yes'/>
     <attribute name='y' elements='mask' href='masking.html#MaskElementYAttribute' animatable='yes'/>
@@ -508,7 +508,7 @@
       contentmodel='anyof'
       elementcategories='animation, descriptive, shape, structural, gradient'
       elements='a, clipPath, color-profile, cursor, filter, font, font-face, foreignObject, image, marker, mask, pattern, script, style, switch, view, text, altGlyphDef'
-      attributecategories='conditional processing, core, presentation, style, xlink'
+      attributecategories='core, presentation, style, xlink'
       attributes='viewBox, preserveAspectRatio'
       interfaces='SVGPatternElement'>
     <attribute name='x' href='pservers.html#PatternElementXAttribute' animatable='yes'/>
@@ -1063,7 +1063,6 @@
   <interface name='SVGTransformableElement' href='types.html#InterfaceSVGTransformableElement'/>
   <interface name='SVGGraphicsElement' href='types.html#InterfaceSVGGraphicsElement'/>
   <interface name='SVGGeometryElement' href='types.html#InterfaceSVGGeometryElement'/>
-  <interface name='SVGDefinitionElement' href='types.html#InterfaceSVGDefinitionElement'/>
   <interface name='SVGTests' href='types.html#InterfaceSVGTests'/>
   <interface name='SVGURIReference' href='types.html#InterfaceSVGURIReference'/>
   <interface name='SVGCSSRule' href='types.html#InterfaceSVGCSSRule'/>
--- a/master/fonts.html	Fri Jan 11 14:47:20 2013 +1100
+++ b/master/fonts.html	Fri Jan 11 16:43:52 2013 +1100
@@ -1485,7 +1485,7 @@
 <p>Object-oriented access to the attributes of the <a>'font element'</a> element
 via the SVG DOM is not available.
 </p>
-<pre class="idl">interface <b>SVGFontElement</b> : <a>SVGDefinitionElement</a> {
+<pre class="idl">interface <b>SVGFontElement</b> : <a>SVGElement</a> {
 };</pre>
 
 </edit:with>
--- a/master/idlindex.html	Fri Jan 11 14:47:20 2013 +1100
+++ b/master/idlindex.html	Fri Jan 11 16:43:52 2013 +1100
@@ -50,7 +50,6 @@
   <li><a>SVGColorProfileElement</a></li>
   <li><a>SVGColorProfileRule</a></li>
   <li><a>SVGCursorElement</a></li>
-  <li><a>SVGDefinitionElement</a></li>
   <li><a>SVGDefsElement</a></li>
   <li><a>SVGDescElement</a></li>
   <li><a>SVGDocument</a></li>
--- a/master/interact.html	Fri Jan 11 14:47:20 2013 +1100
+++ b/master/interact.html	Fri Jan 11 16:43:52 2013 +1100
@@ -1126,7 +1126,7 @@
 
 The <a>SVGCursorElement</a> interface corresponds to the
 <a>'cursor element'</a> element.
-<pre class="idl">interface <b>SVGCursorElement</b> : <a>SVGDefinitionElement</a> {
+<pre class="idl">interface <b>SVGCursorElement</b> : <a>SVGElement</a> {
   readonly attribute <a class="idlinterface" href="types.html#InterfaceSVGAnimatedLength">SVGAnimatedLength</a> <a href="interact.html#__svg__SVGCursorElement__x">x</a>;
   readonly attribute <a class="idlinterface" href="types.html#InterfaceSVGAnimatedLength">SVGAnimatedLength</a> <a href="interact.html#__svg__SVGCursorElement__y">y</a>;
 };
--- a/master/painting.html	Fri Jan 11 14:47:20 2013 +1100
+++ b/master/painting.html	Fri Jan 11 16:43:52 2013 +1100
@@ -3895,7 +3895,7 @@
 
 The <a>SVGMarkerElement</a> interface corresponds to the
 <a>'marker element'</a> element.
-<pre class="idl">interface <b>SVGMarkerElement</b> : <a>SVGDefinitionElement</a> {
+<pre class="idl">interface <b>SVGMarkerElement</b> : <a>SVGElement</a> {
 
   // Marker Unit Types
   const unsigned short <a href="painting.html#__svg__SVGMarkerElement__SVG_MARKERUNITS_UNKNOWN">SVG_MARKERUNITS_UNKNOWN</a> = 0;
--- a/master/pservers.html	Fri Jan 11 14:47:20 2013 +1100
+++ b/master/pservers.html	Fri Jan 11 16:43:52 2013 +1100
@@ -1829,7 +1829,7 @@
 
 The <a>SVGGradientElement</a> interface is a base interface used by
 <a>SVGLinearGradientElement</a> and <a>SVGRadialGradientElement</a>.
-<pre class="idl">interface <b>SVGGradientElement</b> : <a>SVGDefinitionElement</a> {
+<pre class="idl">interface <b>SVGGradientElement</b> : <a>SVGElement</a> {
 
   // Spread Method Types
   const unsigned short <a href="pservers.html#__svg__SVGGradientElement__SVG_SPREADMETHOD_UNKNOWN">SVG_SPREADMETHOD_UNKNOWN</a> = 0;
@@ -2152,7 +2152,7 @@
 
 The <a>SVGPatternElement</a> interface corresponds to the <a>'pattern'</a>
 element.
-<pre class="idl">interface <b>SVGPatternElement</b> : <a>SVGDefinitionElement</a> {
+<pre class="idl">interface <b>SVGPatternElement</b> : <a>SVGElement</a> {
   readonly attribute <a class="idlinterface" href="types.html#InterfaceSVGAnimatedEnumeration">SVGAnimatedEnumeration</a> <a href="pservers.html#__svg__SVGPatternElement__patternUnits">patternUnits</a>;
   readonly attribute <a class="idlinterface" href="types.html#InterfaceSVGAnimatedEnumeration">SVGAnimatedEnumeration</a> <a href="pservers.html#__svg__SVGPatternElement__patternContentUnits">patternContentUnits</a>;
   readonly attribute <a class="idlinterface" href="coords.html#InterfaceSVGAnimatedTransformList">SVGAnimatedTransformList</a> <a href="pservers.html#__svg__SVGPatternElement__patternTransform">patternTransform</a>;
--- a/master/struct.html	Fri Jan 11 14:47:20 2013 +1100
+++ b/master/struct.html	Fri Jan 11 16:43:52 2013 +1100
@@ -1669,8 +1669,8 @@
   <a>'a'</a>, <a>'altGlyph'</a>, <a>'foreignObject'</a>, <a>'textPath'</a>, <a>'tref'</a>, and <a>'tspan'</a> elements.</li>
 
   <li><a>'requiredFeatures'</a>, <a>'requiredExtensions'</a> and <a>'systemLanguage'</a> attributes will
-  have no effect on <a>'mask element'</a>,
-  <a>'clipPath'</a>, and <a>'pattern'</a> elements.</li>
+  have no effect on the <a>'clipPath'</a>, <a>'filter element'</a>, <a>'marker element'</a>, <a>'mask element'</a>,
+  <a>'pattern'</a> and <a>'symbol'</a> elements or on <a>gradient elements</a>.</li>
 
   <li><a>'requiredFeatures'</a>, <a>'requiredExtensions'</a> and <a>'systemLanguage'</a> attributes do not
   apply to the <a>'defs'</a>, and
@@ -3147,7 +3147,7 @@
 
 The <a>SVGSymbolElement</a> interface corresponds to the <a>'symbol'</a>
 element.
-<pre class="idl">interface <b>SVGSymbolElement</b> : <a>SVGDefinitionElement</a> {
+<pre class="idl">interface <b>SVGSymbolElement</b> : <a>SVGElement</a> {
 };
 
 <a>SVGSymbolElement</a> implements <a>SVGFitToViewBox</a>;</pre>
--- a/master/types.html	Fri Jan 11 14:47:20 2013 +1100
+++ b/master/types.html	Fri Jan 11 16:43:52 2013 +1100
@@ -4499,17 +4499,6 @@
 </dl>
 </div>
 
-<h3 id="InterfaceSVGDefinitionElement">Interface SVGDefinitionElement</h3>
-
-<p>Interface <a>SVGDefinitionElement</a> represents SVG elements whose primary purpose
-is to define a reusable resource.</p>
-
-<pre class="idl">interface <b>SVGDefinitionElement</b> : <a>SVGElement</a> {
-};
-
-<a>SVGDefinitionElement</a> implements <a>SVGTests</a>;</pre>
-
-
 <h3 id="InterfaceSVGTests">Interface SVGTests</h3>
 
 <p>Interface <a>SVGTests</a> defines an interface which applies to all