[html5] r2622 - [] (0) Use 'any' instead of DOMObject in IDL blocks. (I may have gone too far; l [...]
whatwg at whatwg.org
whatwg at whatwg.org
Mon Dec 29 17:30:15 PST 2008
Author: ianh
Date: 2008-12-29 17:30:14 -0800 (Mon, 29 Dec 2008)
New Revision: 2622
Modified:
index
source
Log:
[] (0) Use 'any' instead of DOMObject in IDL blocks. (I may have gone too far; let me know if you want some DOMObjects back.) (bug 6182)
Modified: index
===================================================================
--- index 2008-12-30 01:18:36 UTC (rev 2621)
+++ index 2008-12-30 01:30:14 UTC (rev 2622)
@@ -19133,7 +19133,7 @@
DOMString <a href=#dom-canvas-todataurl title=dom-canvas-toDataURL>toDataURL</a>();
DOMString <a href=#dom-canvas-todataurl-type title=dom-canvas-toDataURL-type>toDataURL</a>(in DOMString type, [Variadic] in any args);
- DOMObject <a href=#dom-canvas-getcontext title=dom-canvas-getContext>getContext</a>(in DOMString contextId);
+ any <a href=#dom-canvas-getcontext title=dom-canvas-getContext>getContext</a>(in DOMString contextId);
};</pre>
</dd>
</dl><p>The <code><a href=#the-canvas-element>canvas</a></code> element represents a resolution-dependent
@@ -19345,8 +19345,8 @@
attribute DOMString <a href=#dom-context-2d-globalcompositeoperation title=dom-context-2d-globalCompositeOperation>globalCompositeOperation</a>; // (default source-over)
// colors and styles
- attribute DOMObject <a href=#dom-context-2d-strokestyle title=dom-context-2d-strokeStyle>strokeStyle</a>; // (default black)
- attribute DOMObject <a href=#dom-context-2d-fillstyle title=dom-context-2d-fillStyle>fillStyle</a>; // (default black)
+ attribute any <a href=#dom-context-2d-strokestyle title=dom-context-2d-strokeStyle>strokeStyle</a>; // (default black)
+ attribute any <a href=#dom-context-2d-fillstyle title=dom-context-2d-fillStyle>fillStyle</a>; // (default black)
<a href=#canvasgradient>CanvasGradient</a> <a href=#dom-context-2d-createlineargradient title=dom-context-2d-createLinearGradient>createLinearGradient</a>(in float x0, in float y0, in float x1, in float y1);
<a href=#canvasgradient>CanvasGradient</a> <a href=#dom-context-2d-createradialgradient title=dom-context-2d-createRadialGradient>createRadialGradient</a>(in float x0, in float y0, in float r0, in float x1, in float y1, in float r1);
<a href=#canvaspattern>CanvasPattern</a> <a href=#dom-context-2d-createpattern title=dom-context-2d-createPattern>createPattern</a>(in <a href=#htmlimageelement>HTMLImageElement</a> image, in DOMString repetition);
@@ -37462,8 +37462,8 @@
void <a href=#dom-history-go-0 title=dom-history-go-0>go</a>();
void <a href=#dom-history-back title=dom-history-back>back</a>();
void <a href=#dom-history-forward title=dom-history-forward>forward</a>();
- void <a href=#dom-history-pushstate title=dom-history-pushState>pushState</a>(in DOMObject data, in DOMString title);
- void <a href=#dom-history-pushstate title=dom-history-pushState>pushState</a>(in DOMObject data, in DOMString title, in DOMString url);
+ void <a href=#dom-history-pushstate title=dom-history-pushState>pushState</a>(in any data, in DOMString title);
+ void <a href=#dom-history-pushstate title=dom-history-pushState>pushState</a>(in any data, in DOMString title, in DOMString url);
void <a href=#dom-history-clearstate title=dom-history-clearState>clearState</a>();
};</pre>
@@ -37600,9 +37600,9 @@
cancelable and has no default action.</li>
</ol><!-- XXX onpopstate should be defined somewhere --><pre class=idl>interface <dfn id=popstateevent>PopStateEvent</dfn> : Event {
- readonly attribute DOMObject <a href=#dom-popstateevent-state title=dom-PopStateEvent-state>state</a>;
- void <a href=#dom-popstateevent-initpopstateevent title=dom-PopStateEvent-initPopStateEvent>initPopStateEvent</a>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMObject stateArg);
- void <a href=#dom-popstateevent-initpopstateeventns title=dom-PopStateEvent-initPopStateEventNS>initPopStateEventNS</a>(in DOMString namespaceURIArg, in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMObject stateArg);
+ readonly attribute any <a href=#dom-popstateevent-state title=dom-PopStateEvent-state>state</a>;
+ void <a href=#dom-popstateevent-initpopstateevent title=dom-PopStateEvent-initPopStateEvent>initPopStateEvent</a>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in any stateArg);
+ void <a href=#dom-popstateevent-initpopstateeventns title=dom-PopStateEvent-initPopStateEventNS>initPopStateEventNS</a>(in DOMString namespaceURIArg, in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in any stateArg);
};</pre>
<p>The <dfn id=dom-popstateevent-initpopstateevent title=dom-PopStateEvent-initPopStateEvent><code>initPopStateEvent()</code></dfn>
@@ -39332,7 +39332,7 @@
<pre class=idl>interface <dfn id=sqlresultsetrowlist>SQLResultSetRowList</dfn> {
readonly attribute unsigned long <a href=#dom-sqlresultsetrowlist-length title=dom-SQLResultSetRowList-length>length</a>;
- [IndexGetter] <span>DOMObject</span> <a href=#dom-sqlresultsetrowlist-item title=dom-SQLResultSetRowList-item>item</a>(in unsigned long index);
+ [IndexGetter] <span>any</span> <a href=#dom-sqlresultsetrowlist-item title=dom-SQLResultSetRowList-item>item</a>(in unsigned long index);
};</pre>
<p><code><a href=#sqlresultsetrowlist>SQLResultSetRowList</a></code> objects have a <dfn id=dom-sqlresultsetrowlist-length title=dom-SQLResultSetRowList-length><code>length</code></dfn>
@@ -42858,11 +42858,11 @@
interface can be used:</p>
<pre class=idl>interface <dfn id=undomanager>UndoManager</dfn> {
- unsigned long <a href=#dom-undomanager-add title=dom-UndoManager-add>add</a>(in DOMObject data, in DOMString title);
+ unsigned long <a href=#dom-undomanager-add title=dom-UndoManager-add>add</a>(in any data, in DOMString title);
[XXX] void <a href=#dom-undomanager-remove title=dom-UndoManager-remove>remove</a>(in unsigned long index); <!-- XXX [[Delete]] DOMB -->
void <a href=#dom-undomanager-clearundo title=dom-UndoManager-clearUndo>clearUndo</a>();
void <a href=#dom-undomanager-clearredo title=dom-UndoManager-clearRedo>clearRedo</a>();
- [IndexGetter] DOMObject <a href=#dom-undomanager-item title=dom-UndoManager-item>item</a>(in unsigned long index);
+ [IndexGetter] any <a href=#dom-undomanager-item title=dom-UndoManager-item>item</a>(in unsigned long index);
readonly attribute unsigned long <a href=#dom-undomanager-length title=dom-UndoManager-length>length</a>;
readonly attribute unsigned long <a href=#dom-undomanager-position title=dom-UndoManager-position>position</a>;
};</pre>
@@ -43032,9 +43032,9 @@
<h4 id=the-undomanagerevent-interface-and-the-undo-and-redo-events><span class=secno>6.9.4 </span>The <code><a href=#undomanagerevent>UndoManagerEvent</a></code> interface and the <code title=event-undo><a href=#event-undo>undo</a></code> and <code title=event-redo><a href=#event-redo>redo</a></code> events</h4>
<pre class=idl>interface <dfn id=undomanagerevent>UndoManagerEvent</dfn> : Event {
- readonly attribute DOMObject <a href=#dom-undomanagerevent-data title=dom-UndoManagerEvent-data>data</a>;
- void <a href=#dom-undomanagerevent-initundomanagerevent title=dom-UndoManagerEvent-initUndoManagerEvent>initUndoManagerEvent</a>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMObject dataArg);
- void <span title=dom-UndoManagerEvent-initUndoManagerEventNS>initUndoManagerEventNS</span>(in DOMString namespaceURIArg, in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMObject dataArg);
+ readonly attribute any <a href=#dom-undomanagerevent-data title=dom-UndoManagerEvent-data>data</a>;
+ void <a href=#dom-undomanagerevent-initundomanagerevent title=dom-UndoManagerEvent-initUndoManagerEvent>initUndoManagerEvent</a>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in any dataArg);
+ void <span title=dom-UndoManagerEvent-initUndoManagerEventNS>initUndoManagerEventNS</span>(in DOMString namespaceURIArg, in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in any dataArg);
};</pre>
<p>The <dfn id=dom-undomanagerevent-initundomanagerevent title=dom-UndoManagerEvent-initUndoManagerEvent><code>initUndoManagerEvent()</code></dfn>
@@ -55219,15 +55219,16 @@
Champeimont, Rene Saarsoo, Richard Ishida, Rimantas Liubertas,
Robert Blaut, Robert O'Callahan, Robert Sayre, Roman Ivanov, Ryan
King, S. Mike Dierken, Sam Kuper, Sam Ruby, Sam Weinig, Scott Hess,
- Sean Knapp, Shaun Inman, Silvia Pfeiffer, Simon Pieters, Stefan
- Haustein, Steffen Meschkat, Stephen Ma, Steve Faulkner, Steve
- Runyon, Steven Garrity, Stewart Brodie, Stuart Parmenter, Sunava
- Dutta, Tantek Çelik, Terrence Wood, Thomas Broyer, Thomas
- O'Connor, Tim Altman, Tim Johansson, Tommy Thorsen, Travis Leithead,
- Tyler Close, Vladimir Vukićević, Wakaba, Wayne
- Pollock, Wellington Fernando de Macedo, William Swanson, Wolfram
- Kriesing, Yi-An Huang, Zhenbin Xu, and Øistein E. Andersen,
- for their useful and substantial comments.</p>
+ Sean Knapp, Shaun Inman, Shiki Okasaka, Silvia Pfeiffer, Simon
+ Pieters, Stefan Haustein, Steffen Meschkat, Stephen Ma, Steve
+ Faulkner, Steve Runyon, Steven Garrity, Stewart Brodie, Stuart
+ Parmenter, Sunava Dutta, Tantek Çelik, Terrence Wood, Thomas
+ Broyer, Thomas O'Connor, Tim Altman, Tim Johansson, Tommy Thorsen,
+ Travis Leithead, Tyler Close, Vladimir Vukićević,
+ Wakaba, Wayne Pollock, Wellington Fernando de Macedo, William
+ Swanson, Wolfram Kriesing, Yi-An Huang, Zhenbin Xu, and
+ Øistein E. Andersen, for their useful and substantial
+ comments.</p>
<p>Thanks also to everyone who has ever posted about HTML5 to their
blogs, public mailing lists, or forums, including the <a href=http://lists.w3.org/Archives/Public/public-html/>W3C
Modified: source
===================================================================
--- source 2008-12-30 01:18:36 UTC (rev 2621)
+++ source 2008-12-30 01:30:14 UTC (rev 2622)
@@ -20768,7 +20768,7 @@
DOMString <span title="dom-canvas-toDataURL">toDataURL</span>();
DOMString <span title="dom-canvas-toDataURL-type">toDataURL</span>(in DOMString type, [Variadic] in any args);
- DOMObject <span title="dom-canvas-getContext">getContext</span>(in DOMString contextId);
+ any <span title="dom-canvas-getContext">getContext</span>(in DOMString contextId);
};</pre>
</dd>
</dl>
@@ -21012,8 +21012,8 @@
attribute DOMString <span title="dom-context-2d-globalCompositeOperation">globalCompositeOperation</span>; // (default source-over)
// colors and styles
- attribute DOMObject <span title="dom-context-2d-strokeStyle">strokeStyle</span>; // (default black)
- attribute DOMObject <span title="dom-context-2d-fillStyle">fillStyle</span>; // (default black)
+ attribute any <span title="dom-context-2d-strokeStyle">strokeStyle</span>; // (default black)
+ attribute any <span title="dom-context-2d-fillStyle">fillStyle</span>; // (default black)
<span>CanvasGradient</span> <span title="dom-context-2d-createLinearGradient">createLinearGradient</span>(in float x0, in float y0, in float x1, in float y1);
<span>CanvasGradient</span> <span title="dom-context-2d-createRadialGradient">createRadialGradient</span>(in float x0, in float y0, in float r0, in float x1, in float y1, in float r1);
<span>CanvasPattern</span> <span title="dom-context-2d-createPattern">createPattern</span>(in <span>HTMLImageElement</span> image, in DOMString repetition);
@@ -42610,8 +42610,8 @@
void <span title="dom-history-go-0">go</span>();
void <span title="dom-history-back">back</span>();
void <span title="dom-history-forward">forward</span>();
- void <span title="dom-history-pushState">pushState</span>(in DOMObject data, in DOMString title);
- void <span title="dom-history-pushState">pushState</span>(in DOMObject data, in DOMString title, in DOMString url);
+ void <span title="dom-history-pushState">pushState</span>(in any data, in DOMString title);
+ void <span title="dom-history-pushState">pushState</span>(in any data, in DOMString title, in DOMString url);
void <span title="dom-history-clearState">clearState</span>();
};</pre>
@@ -42794,9 +42794,9 @@
<pre class="idl">interface <dfn>PopStateEvent</dfn> : Event {
- readonly attribute DOMObject <span title="dom-PopStateEvent-state">state</span>;
- void <span title="dom-PopStateEvent-initPopStateEvent">initPopStateEvent</span>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMObject stateArg);
- void <span title="dom-PopStateEvent-initPopStateEventNS">initPopStateEventNS</span>(in DOMString namespaceURIArg, in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMObject stateArg);
+ readonly attribute any <span title="dom-PopStateEvent-state">state</span>;
+ void <span title="dom-PopStateEvent-initPopStateEvent">initPopStateEvent</span>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in any stateArg);
+ void <span title="dom-PopStateEvent-initPopStateEventNS">initPopStateEventNS</span>(in DOMString namespaceURIArg, in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in any stateArg);
};</pre>
<p>The <dfn
@@ -44762,7 +44762,7 @@
<pre class="idl">interface <dfn>SQLResultSetRowList</dfn> {
readonly attribute unsigned long <span title="dom-SQLResultSetRowList-length">length</span>;
- [IndexGetter] <span>DOMObject</span> <span title="dom-SQLResultSetRowList-item">item</span>(in unsigned long index);
+ [IndexGetter] <span>any</span> <span title="dom-SQLResultSetRowList-item">item</span>(in unsigned long index);
};</pre>
<p><code>SQLResultSetRowList</code> objects have a <dfn
@@ -48896,11 +48896,11 @@
interface can be used:</p>
<pre class="idl">interface <dfn>UndoManager</dfn> {
- unsigned long <span title="dom-UndoManager-add">add</span>(in DOMObject data, in DOMString title);
+ unsigned long <span title="dom-UndoManager-add">add</span>(in any data, in DOMString title);
[XXX] void <span title="dom-UndoManager-remove">remove</span>(in unsigned long index); <!-- XXX [[Delete]] DOMB -->
void <span title="dom-UndoManager-clearUndo">clearUndo</span>();
void <span title="dom-UndoManager-clearRedo">clearRedo</span>();
- [IndexGetter] DOMObject <span title="dom-UndoManager-item">item</span>(in unsigned long index);
+ [IndexGetter] any <span title="dom-UndoManager-item">item</span>(in unsigned long index);
readonly attribute unsigned long <span title="dom-UndoManager-length">length</span>;
readonly attribute unsigned long <span title="dom-UndoManager-position">position</span>;
};</pre>
@@ -49088,9 +49088,9 @@
<h4>The <code>UndoManagerEvent</code> interface and the <code title="event-undo">undo</code> and <code title="event-redo">redo</code> events</h4>
<pre class="idl">interface <dfn>UndoManagerEvent</dfn> : Event {
- readonly attribute DOMObject <span title="dom-UndoManagerEvent-data">data</span>;
- void <span title="dom-UndoManagerEvent-initUndoManagerEvent">initUndoManagerEvent</span>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMObject dataArg);
- void <span title="dom-UndoManagerEvent-initUndoManagerEventNS">initUndoManagerEventNS</span>(in DOMString namespaceURIArg, in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMObject dataArg);
+ readonly attribute any <span title="dom-UndoManagerEvent-data">data</span>;
+ void <span title="dom-UndoManagerEvent-initUndoManagerEvent">initUndoManagerEvent</span>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in any dataArg);
+ void <span title="dom-UndoManagerEvent-initUndoManagerEventNS">initUndoManagerEventNS</span>(in DOMString namespaceURIArg, in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in any dataArg);
};</pre>
<p>The <dfn
@@ -60338,15 +60338,16 @@
Champeimont, Rene Saarsoo, Richard Ishida, Rimantas Liubertas,
Robert Blaut, Robert O'Callahan, Robert Sayre, Roman Ivanov, Ryan
King, S. Mike Dierken, Sam Kuper, Sam Ruby, Sam Weinig, Scott Hess,
- Sean Knapp, Shaun Inman, Silvia Pfeiffer, Simon Pieters, Stefan
- Haustein, Steffen Meschkat, Stephen Ma, Steve Faulkner, Steve
- Runyon, Steven Garrity, Stewart Brodie, Stuart Parmenter, Sunava
- Dutta, Tantek Çelik, Terrence Wood, Thomas Broyer, Thomas
- O'Connor, Tim Altman, Tim Johansson, Tommy Thorsen, Travis Leithead,
- Tyler Close, Vladimir Vukićević, Wakaba, Wayne
- Pollock, Wellington Fernando de Macedo, William Swanson, Wolfram
- Kriesing, Yi-An Huang, Zhenbin Xu, and Øistein E. Andersen,
- for their useful and substantial comments.</p>
+ Sean Knapp, Shaun Inman, Shiki Okasaka, Silvia Pfeiffer, Simon
+ Pieters, Stefan Haustein, Steffen Meschkat, Stephen Ma, Steve
+ Faulkner, Steve Runyon, Steven Garrity, Stewart Brodie, Stuart
+ Parmenter, Sunava Dutta, Tantek Çelik, Terrence Wood, Thomas
+ Broyer, Thomas O'Connor, Tim Altman, Tim Johansson, Tommy Thorsen,
+ Travis Leithead, Tyler Close, Vladimir Vukićević,
+ Wakaba, Wayne Pollock, Wellington Fernando de Macedo, William
+ Swanson, Wolfram Kriesing, Yi-An Huang, Zhenbin Xu, and
+ Øistein E. Andersen, for their useful and substantial
+ comments.</p>
<p>Thanks also to everyone who has ever posted about HTML5 to their
blogs, public mailing lists, or forums, including the <a
More information about the Commit-Watchers
mailing list