[html5] r1953 - [] (0) Make height and width DOM attributes be unsigned.

whatwg at whatwg.org whatwg at whatwg.org
Tue Jul 29 18:41:23 PDT 2008


Author: ianh
Date: 2008-07-29 18:41:23 -0700 (Tue, 29 Jul 2008)
New Revision: 1953

Modified:
   index
   source
Log:
[] (0) Make height and width DOM attributes be unsigned.

Modified: index
===================================================================
--- index	2008-07-30 01:37:41 UTC (rev 1952)
+++ index	2008-07-30 01:41:23 UTC (rev 1953)
@@ -15417,8 +15417,8 @@
            attribute DOMString <a href="#src0" title=dom-img-src>src</a>;
            attribute DOMString <a href="#usemap" title=dom-img-useMap>useMap</a>;
            attribute boolean <a href="#ismap0" title=dom-img-isMap>isMap</a>;
-           attribute long <a href="#width" title=dom-img-width>width</a>;
-           attribute long <a href="#height" title=dom-img-height>height</a>;
+           attribute unsigned long <a href="#width" title=dom-img-width>width</a>;
+           attribute unsigned long <a href="#height" title=dom-img-height>height</a>;
   readonly attribute boolean <a href="#complete" title=dom-img-complete>complete</a>;
 };</pre>
   </dl>
@@ -16091,8 +16091,8 @@
            attribute DOMString <a href="#name2" title=dom-iframe-name>name</a>;
            attribute DOMString <a href="#sandbox0" title=dom-iframe-sandbox>sandbox</a>;
            attribute boolean <a href="#seamless1" title=dom-iframe-seamless>seamless</a>;
-           attribute long <a href="#width5" title=dom-dim-width>width</a>;
-           attribute long <a href="#height4" title=dom-dim-height>height</a>;
+           attribute unsigned long <a href="#width5" title=dom-dim-width>width</a>;
+           attribute unsigned long <a href="#height4" title=dom-dim-height>height</a>;
 <!-- XXX we should bring these back since the Window spec has atrophied
   readonly attribute Document <span title="dom-iframe-contentDocument">contentDocument</span>;
   readonly attribute <span>Window</span> <span title="dom-iframe-contentWindow">contentWindow</span>;
@@ -16531,8 +16531,8 @@
      class=idl>interface <dfn id=htmlembedelement>HTMLEmbedElement</dfn> : <a href="#htmlelement">HTMLElement</a> {
            attribute DOMString <a href="#src4" title=dom-embed-src>src</a>;
            attribute DOMString <a href="#type5" title=dom-embed-type>type</a>;
-           attribute long <a href="#width5" title=dom-dim-width>width</a>;
-           attribute long <a href="#height4" title=dom-dim-height>height</a>;
+           attribute unsigned long <a href="#width5" title=dom-dim-width>width</a>;
+           attribute unsigned long <a href="#height4" title=dom-dim-height>height</a>;
 };</pre>
 
     <p>Depending on the type of content instantiated by the <code><a
@@ -16734,8 +16734,8 @@
            attribute DOMString <a href="#type7" title=dom-object-type>type</a>;
            attribute DOMString <a href="#name4" title=dom-object-name>name</a>;
            attribute DOMString <a href="#usemap0" title=dom-object-useMap>useMap</a>;
-           attribute long <a href="#width5" title=dom-dim-width>width</a>;
-           attribute long <a href="#height4" title=dom-dim-height>height</a>;<!--
+           attribute unsigned long <a href="#width5" title=dom-dim-width>width</a>;
+           attribute unsigned long <a href="#height4" title=dom-dim-height>height</a>;<!--
   readonly attribute Document <span title="dom-object-contentDocument">contentDocument</span>;
   readonly attribute <span>Window</span> <span title="dom-object-contentWindow">contentWindow</span>;-->
 };</pre>
@@ -17184,8 +17184,8 @@
    <dd>
     <pre
      class=idl>interface <dfn id=htmlvideoelement>HTMLVideoElement</dfn> : <a href="#htmlmediaelement">HTMLMediaElement</a> {
-           attribute long <a href="#width5" title=dom-dim-width>width</a>;
-           attribute long <a href="#height4" title=dom-dim-height>height</a>;
+           attribute unsigned long <a href="#width5" title=dom-dim-width>width</a>;
+           attribute unsigned long <a href="#height4" title=dom-dim-height>height</a>;
   readonly attribute unsigned long <a href="#videowidth" title=dom-video-videoWidth>videoWidth</a>;
   readonly attribute unsigned long <a href="#videoheight" title=dom-video-videoHeight>videoHeight</a>;
            attribute DOMString <a href="#poster1" title=dom-video-poster>poster</a>;
@@ -20462,8 +20462,8 @@
 };
 
 interface <dfn id=imagedata>ImageData</dfn> {
-  readonly attribute long int <a href="#width3" title=dom-imagedata-width>width</a>;
-  readonly attribute long int <a href="#height2" title=dom-imagedata-height>height</a>;
+  readonly attribute unsigned long int <a href="#width3" title=dom-imagedata-width>width</a>;
+  readonly attribute unsigned long int <a href="#height2" title=dom-imagedata-height>height</a>;
   readonly attribute <a href="#canvaspixelarray">CanvasPixelArray</a> <a href="#data1" title=dom-imagedata-data>data</a>;
 };
 

Modified: source
===================================================================
--- source	2008-07-30 01:37:41 UTC (rev 1952)
+++ source	2008-07-30 01:41:23 UTC (rev 1953)
@@ -12967,8 +12967,8 @@
            attribute DOMString <span title="dom-img-src">src</span>;
            attribute DOMString <span title="dom-img-useMap">useMap</span>;
            attribute boolean <span title="dom-img-isMap">isMap</span>;
-           attribute long <span title="dom-img-width">width</span>;
-           attribute long <span title="dom-img-height">height</span>;
+           attribute unsigned long <span title="dom-img-width">width</span>;
+           attribute unsigned long <span title="dom-img-height">height</span>;
   readonly attribute boolean <span title="dom-img-complete">complete</span>;
 };</pre>
    </dd>
@@ -13686,8 +13686,8 @@
            attribute DOMString <span title="dom-iframe-name">name</span>;
            attribute DOMString <span title="dom-iframe-sandbox">sandbox</span>;
            attribute boolean <span title="dom-iframe-seamless">seamless</span>;
-           attribute long <span title="dom-dim-width">width</span>;
-           attribute long <span title="dom-dim-height">height</span>;
+           attribute unsigned long <span title="dom-dim-width">width</span>;
+           attribute unsigned long <span title="dom-dim-height">height</span>;
 <!-- XXX we should bring these back since the Window spec has atrophied
   readonly attribute Document <span title="dom-iframe-contentDocument">contentDocument</span>;
   readonly attribute <span>Window</span> <span title="dom-iframe-contentWindow">contentWindow</span>;
@@ -14144,8 +14144,8 @@
 <pre class="idl">interface <dfn>HTMLEmbedElement</dfn> : <span>HTMLElement</span> {
            attribute DOMString <span title="dom-embed-src">src</span>;
            attribute DOMString <span title="dom-embed-type">type</span>;
-           attribute long <span title="dom-dim-width">width</span>;
-           attribute long <span title="dom-dim-height">height</span>;
+           attribute unsigned long <span title="dom-dim-width">width</span>;
+           attribute unsigned long <span title="dom-dim-height">height</span>;
 };</pre>
     <p>Depending on the type of content instantiated by the
     <code>embed</code> element, the node may also support other
@@ -14331,8 +14331,8 @@
            attribute DOMString <span title="dom-object-type">type</span>;
            attribute DOMString <span title="dom-object-name">name</span>;
            attribute DOMString <span title="dom-object-useMap">useMap</span>;
-           attribute long <span title="dom-dim-width">width</span>;
-           attribute long <span title="dom-dim-height">height</span>;<!--
+           attribute unsigned long <span title="dom-dim-width">width</span>;
+           attribute unsigned long <span title="dom-dim-height">height</span>;<!--
   readonly attribute Document <span title="dom-object-contentDocument">contentDocument</span>;
   readonly attribute <span>Window</span> <span title="dom-object-contentWindow">contentWindow</span>;-->
 };</pre>
@@ -14776,8 +14776,8 @@
    <dt>DOM interface:</dt>
    <dd>
     <pre class="idl">interface <dfn>HTMLVideoElement</dfn> : <span>HTMLMediaElement</span> {
-           attribute long <span title="dom-dim-width">width</span>;
-           attribute long <span title="dom-dim-height">height</span>;
+           attribute unsigned long <span title="dom-dim-width">width</span>;
+           attribute unsigned long <span title="dom-dim-height">height</span>;
   readonly attribute unsigned long <span title="dom-video-videoWidth">videoWidth</span>;
   readonly attribute unsigned long <span title="dom-video-videoHeight">videoHeight</span>;
            attribute DOMString <span title="dom-video-poster">poster</span>;
@@ -17725,8 +17725,8 @@
 };
 
 interface <dfn>ImageData</dfn> {
-  readonly attribute long int <span title="dom-imagedata-width">width</span>;
-  readonly attribute long int <span title="dom-imagedata-height">height</span>;
+  readonly attribute unsigned long int <span title="dom-imagedata-width">width</span>;
+  readonly attribute unsigned long int <span title="dom-imagedata-height">height</span>;
   readonly attribute <span>CanvasPixelArray</span> <span title="dom-imagedata-data">data</span>;
 };
 




More information about the Commit-Watchers mailing list