Skip to content
Permalink
Browse files
[giow] (1) Fix WebIDL-related issues uncovered by the recent updates …
…to the webidl checker

git-svn-id: http://svn.whatwg.org/webapps@6152 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed May 27, 2011
1 parent 6e72262 commit 4690d9ab5b9ea9b9cc7b894147d0bc5766956108
Showing 3 changed files with 133 additions and 74 deletions.
@@ -239,7 +239,7 @@

<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1>Web Applications 1.0</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 26 May 2011</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 27 May 2011</h2>
</hgroup><dl><dt>Multiple-page version:</dt>
<dd><a href=http://www.whatwg.org/specs/web-apps/current-work/complete/>http://www.whatwg.org/specs/web-apps/current-work/complete/</a></dd>
<dt>One-page version:</dt>
@@ -3407,8 +3407,9 @@ <h4 id=dependencies><span class=secno>2.2.2 </span>Dependencies</h4>
required for conforming IDL fragments, as described in the Web IDL
specification. <a href=#refsWEBIDL>[WEBIDL]</a></p>

<p>The terms <dfn id=supported-property-indices>supported property indices</dfn> and
<dfn id=supported-property-names>supported property names</dfn> are used as defined in the
<p>The terms <dfn id=supported-property-indices>supported property indices</dfn>, <dfn id=supported-property-names>supported
property names</dfn>, and <dfn id=dfn-read-only-array title=dfn-read-only-array>read
only</dfn> (when applied to arrays) are used as defined in the
WebIDL specification.</p>

<p id=float-nan>Except where otherwise specified, if an IDL
@@ -10080,7 +10081,7 @@ <h4 id=elements-in-the-dom><span class=secno>3.2.2 </span>Elements in the DOM</h
attribute DOMString <a href=#dom-accesskey title=dom-accessKey>accessKey</a>;
readonly attribute DOMString <a href=#dom-accesskeylabel title=dom-accessKeyLabel>accessKeyLabel</a>;
attribute boolean <a href=#dom-draggable title=dom-draggable>draggable</a>;
[PutForwards=<a href=#dom-domsettabletokenlist-value title=dom-DOMSettableTokenList-value>value</a>] attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-dropzone title=dom-dropzone>dropzone</a>;
[PutForwards=<a href=#dom-domsettabletokenlist-value title=dom-DOMSettableTokenList-value>value</a>] readonly attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-dropzone title=dom-dropzone>dropzone</a>;
attribute DOMString <a href=#dom-contenteditable title=dom-contentEditable>contentEditable</a>;
readonly attribute boolean <a href=#dom-iscontenteditable title=dom-isContentEditable>isContentEditable</a>;
attribute <a href=#htmlmenuelement>HTMLMenuElement</a> <a href=#dom-contextmenu title=dom-contextMenu>contextMenu</a>;
@@ -34538,18 +34539,22 @@ <h5 id=2dcontext><span class=secno>4.8.11.1 </span>The 2D context</h5>
<a href=#textmetrics>TextMetrics</a> <a href=#dom-context-2d-measuretext title=dom-context-2d-measureText>measureText</a>(in DOMString text);

// drawing images
void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlimageelement>HTMLImageElement</a> image, in double dx, in double dy, in optional double dw, in double dh);
void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlimageelement>HTMLImageElement</a> image, in double dx, in double dy);
void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlimageelement>HTMLImageElement</a> image, in double dx, in double dy, in double dw, in double dh);
void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlimageelement>HTMLImageElement</a> image, in double sx, in double sy, in double sw, in double sh, in double dx, in double dy, in double dw, in double dh);
void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlcanvaselement>HTMLCanvasElement</a> image, in double dx, in double dy, in optional double dw, in double dh);
void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlcanvaselement>HTMLCanvasElement</a> image, in double dx, in double dy);
void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlcanvaselement>HTMLCanvasElement</a> image, in double dx, in double dy, in double dw, in double dh);
void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlcanvaselement>HTMLCanvasElement</a> image, in double sx, in double sy, in double sw, in double sh, in double dx, in double dy, in double dw, in double dh);
void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlvideoelement>HTMLVideoElement</a> image, in double dx, in double dy, in optional double dw, in double dh);
void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlvideoelement>HTMLVideoElement</a> image, in double dx, in double dy);
void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlvideoelement>HTMLVideoElement</a> image, in double dx, in double dy, in double dw, in double dh);
void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlvideoelement>HTMLVideoElement</a> image, in double sx, in double sy, in double sw, in double sh, in double dx, in double dy, in double dw, in double dh);

// pixel manipulation
<a href=#imagedata>ImageData</a> <a href=#dom-context-2d-createimagedata title=dom-context-2d-createImageData>createImageData</a>(in double sw, in double sh);
<a href=#imagedata>ImageData</a> <a href=#dom-context-2d-createimagedata title=dom-context-2d-createImageData>createImageData</a>(in <a href=#imagedata>ImageData</a> imagedata);
<a href=#imagedata>ImageData</a> <a href=#dom-context-2d-getimagedata title=dom-context-2d-getImageData>getImageData</a>(in double sx, in double sy, in double sw, in double sh);
void <a href=#dom-context-2d-putimagedata title=dom-context-2d-putImageData>putImageData</a>(in <a href=#imagedata>ImageData</a> imagedata, in double dx, in double dy, in optional double dirtyX, in double dirtyY, in double dirtyWidth, in double dirtyHeight);
void <a href=#dom-context-2d-putimagedata title=dom-context-2d-putImageData>putImageData</a>(in <a href=#imagedata>ImageData</a> imagedata, in double dx, in double dy);
void <a href=#dom-context-2d-putimagedata title=dom-context-2d-putImageData>putImageData</a>(in <a href=#imagedata>ImageData</a> imagedata, in double dx, in double dy, in double dirtyX, in double dirtyY, in double dirtyWidth, in double dirtyHeight);
};

interface <dfn id=canvasgradient>CanvasGradient</dfn> {
@@ -60973,7 +60978,7 @@ <h3 id=the-window-object><span class=secno>6.2 </span>The <code><a href=#window>
any <a href=#dom-showmodaldialog title=dom-showModalDialog>showModalDialog</a>(in DOMString url, in optional any argument<!--, in optional DOMString features-->);

<!--POSTMSG--> // <a href=#web-messaging>cross-document messaging</a>
void <a href=#dom-window-postmessage title=dom-window-postMessage>postMessage</a>(in any message, in DOMString targetOrigin, in optional <a href=#messageportarray>MessagePortArray</a> ports);
void <a href=#dom-window-postmessage title=dom-window-postMessage>postMessage</a>(in any message, in DOMString targetOrigin, in optional sequence&lt;<a href=#messageport>MessagePort</a>&gt; ports);
<!--POSTMSG-->
// <a href=#event-handler-idl-attributes>event handler IDL attributes</a>
attribute <a href=#function>Function</a> <a href=#handler-onabort title=handler-onabort>onabort</a>;
@@ -76772,7 +76777,7 @@ <h5 id=dedicated-workers-and-the-dedicatedworkerglobalscope-interface><span clas

<pre class=idl>[Supplemental, NoInterfaceObject]
interface <dfn id=dedicatedworkerglobalscope>DedicatedWorkerGlobalScope</dfn> : <a href=#workerglobalscope>WorkerGlobalScope</a> {
void <a href=#dom-dedicatedworkerglobalscope-postmessage title=dom-DedicatedWorkerGlobalScope-postMessage>postMessage</a>(in any message, in optional <a href=#messageportarray>MessagePortArray</a> ports);<!--
void <a href=#dom-dedicatedworkerglobalscope-postmessage title=dom-DedicatedWorkerGlobalScope-postMessage>postMessage</a>(in any message, in optional sequence&lt;<a href=#messageport>MessagePort</a>&gt; ports);<!--
<span>MessagePort</span> <span title="dom-DedicatedWorkerGlobalScope-startConversation">startConversation</span>(in any message);-->
attribute <a href=#function>Function</a> <a href=#handler-dedicatedworkerglobalscope-onmessage title=handler-DedicatedWorkerGlobalScope-onmessage>onmessage</a>;
};</pre>
@@ -77317,7 +77322,7 @@ <h5 id=the-abstractworker-abstract-interface><span class=secno>10.2.7.1 </span>T
interface <dfn id=worker>Worker</dfn> : <a href=#abstractworker>AbstractWorker</a> {
void <a href=#dom-worker-terminate title=dom-Worker-terminate>terminate</a>();

void <a href=#dom-worker-postmessage title=dom-Worker-postMessage>postMessage</a>(in any message, in optional <a href=#messageportarray>MessagePortArray</a> ports);<!--
void <a href=#dom-worker-postmessage title=dom-Worker-postMessage>postMessage</a>(in any message, in optional sequence&lt;<a href=#messageport>MessagePort</a>&gt; ports);<!--
<span>MessagePort</span> <span title="dom-Worker-startConversation">startConversation</span>(in any message);-->
attribute <a href=#function>Function</a> <a href=#handler-worker-onmessage title=handler-Worker-onmessage>onmessage</a>;
};</pre>
@@ -77572,8 +77577,10 @@ <h5 id=shared-workers-and-the-sharedworker-interface><span class=secno>10.2.7.3
interface, with the name <code title=event-connect>connect</code>, which does not bubble, is
not cancelable, has no default action, has a <code title=dom-MessageEvent-data><a href=#dom-messageevent-data>data</a></code> attribute whose value
is the empty string and has a <code title=dom-MessageEvent-ports><a href=#dom-messageevent-ports>ports</a></code> attribute whose
value is an array containing only the newly created port, and
<a href=#queue-a-task>queue a task</a> to dispatch the event at <var title="">worker global scope</var>.</li>
value is a <a href=#dfn-read-only-array title=dfn-read-only-array>read only</a>
array containing only the newly created port, and <a href=#queue-a-task>queue a
task</a> to dispatch the event at <var title="">worker
global scope</var>.</li>

<li>

@@ -77625,8 +77632,9 @@ <h5 id=shared-workers-and-the-sharedworker-interface><span class=secno>10.2.7.3
interface, with the name <code title=event-connect>connect</code>, which does not bubble, is not
cancelable, has no default action, has a <code title=dom-MessageEvent-data><a href=#dom-messageevent-data>data</a></code> attribute whose value is
the empty string and has a <code title=dom-MessageEvent-ports><a href=#dom-messageevent-ports>ports</a></code> attribute whose value
is an array containing only the newly created port, and <a href=#queue-a-task>queue
a task</a> to dispatch the event at <var title="">worker global
is a <a href=#dfn-read-only-array title=dfn-read-only-array>read only</a> array
containing only the newly created port, and <a href=#queue-a-task>queue a
task</a> to dispatch the event at <var title="">worker global
scope</var>.</li>

<li>
@@ -77901,8 +77909,8 @@ <h3 id=event-definitions-1><span class=secno>11.1 </span>Event definitions</h3>
readonly attribute DOMString <a href=#dom-messageevent-origin title=dom-MessageEvent-origin>origin</a>;
readonly attribute DOMString <a href=#dom-messageevent-lasteventid title=dom-MessageEvent-lastEventId>lastEventId</a>;
readonly attribute <a href=#windowproxy>WindowProxy</a> <a href=#dom-messageevent-source title=dom-MessageEvent-source>source</a>;
readonly attribute <a href=#messageportarray>MessagePortArray</a> <a href=#dom-messageevent-ports title=dom-MessageEvent-ports>ports</a>;
void <a href=#dom-messageevent-initmessageevent title=dom-MessageEvent-initMessageEvent>initMessageEvent</a>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in any dataArg, in DOMString originArg, in DOMString lastEventIdArg, in <a href=#windowproxy>WindowProxy</a> sourceArg, in <a href=#messageportarray>MessagePortArray</a> portsArg);
readonly attribute <a href=#messageport>MessagePort</a>[] <a href=#dom-messageevent-ports title=dom-MessageEvent-ports>ports</a>;
void <a href=#dom-messageevent-initmessageevent title=dom-MessageEvent-initMessageEvent>initMessageEvent</a>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in any dataArg, in DOMString originArg, in DOMString lastEventIdArg, in <a href=#windowproxy>WindowProxy</a> sourceArg, in sequence&lt;<a href=#messageport>MessagePort</a>&gt; portsArg);
};</pre>

<dl class=domintro><dt><var title="">event</var> . <code title=dom-MessageEvent-data><a href=#dom-messageevent-data>data</a></code></dt>
@@ -77944,7 +77952,7 @@ <h3 id=event-definitions-1><span class=secno>11.1 </span>Event definitions</h3>

<dd>

<p>Returns the <code><a href=#messageportarray>MessagePortArray</a></code> sent with the
<p>Returns the <code><a href=#messageport>MessagePort</a></code> array sent with the
message, for <a href=#web-messaging>cross-document messaging</a> and
<a href=#channel-messaging>channel messaging</a>.</p>

@@ -77977,7 +77985,7 @@ <h3 id=event-definitions-1><span class=secno>11.1 </span>Event definitions</h3>

<p>The <dfn id=dom-messageevent-ports title=dom-MessageEvent-ports><code>ports</code></dfn>
attribute represents, in <a href=#web-messaging>cross-document messaging</a> and
<a href=#channel-messaging>channel messaging</a> the <code><a href=#messageportarray>MessagePortArray</a></code>
<a href=#channel-messaging>channel messaging</a> the <code><a href=#messageport>MessagePort</a></code> array
being sent, if any.</p>

<p>Except where otherwise specified, when the user agent creates and
@@ -78829,7 +78837,7 @@ <h4 id=the-websocket-interface><span class=secno>11.3.2 </span>The <code><a href

// messaging
attribute <a href=#function>Function</a> <a href=#handler-websocket-onmessage title=handler-WebSocket-onmessage>onmessage</a>;
attribute Object <a href=#dom-websocket-binarytype title=dom-WebSocket-binaryType>binaryType</a>;
attribute object <a href=#dom-websocket-binarytype title=dom-WebSocket-binaryType>binaryType</a>;
void <a href=#dom-websocket-send title=dom-WebSocket-send>send</a>(in DOMString data);
void <a href=#dom-websocket-send title=dom-WebSocket-send>send</a>(in <span>ArrayBuffer</span> data);
void <a href=#dom-websocket-send title=dom-WebSocket-send>send</a>(in <a href=#blob>Blob</a> data);
@@ -79561,6 +79569,12 @@ <h4 id=posting-messages><span class=secno>11.4.3 </span>Posting messages</h4>

</li>

<li>

<p>Make <var title="">new ports</var> into a <a href=#dfn-read-only-array title=dfn-read-only-array>read only</a> array.</p>

</li>

<li>

<p>Return from the <code title=dom-window-postMessage><a href=#dom-window-postmessage>postMessage()</a></code> method, but
@@ -79731,11 +79745,9 @@ <h4 id=message-ports><span class=secno>11.5.3 </span>Message ports</h4>
<p>Each channel has two message ports. Data sent through one port is
received by the other port, and vice versa.</p>

<pre class=idl>typedef sequence&lt;MessagePort&gt; <dfn id=messageportarray>MessagePortArray</dfn>;

interface <dfn id=messageport>MessagePort</dfn> {
<pre class=idl>interface <dfn id=messageport>MessagePort</dfn> {
<!-- v2-onclose readonly attribute boolean <span title="dom-MessagePort-active">active</span>;
--> void <a href=#dom-messageport-postmessage title=dom-MessagePort-postMessage>postMessage</a>(in any message, in optional <a href=#messageportarray>MessagePortArray</a> ports);<!--
--> void <a href=#dom-messageport-postmessage title=dom-MessagePort-postMessage>postMessage</a>(in any message, in optional sequence&lt;<a href=#messageport>MessagePort</a>&gt; ports);<!--
<span>MessagePort</span> <span title="dom-MessagePort-startConversation">startConversation</span>(in any message);-->
void <a href=#dom-messageport-start title=dom-MessagePort-start>start</a>();
void <a href=#dom-messageport-close title=dom-MessagePort-close>close</a>();
@@ -79911,6 +79923,12 @@ <h4 id=message-ports><span class=secno>11.5.3 </span>Message ports</h4>

</li>

<li>

<p>Make <var title="">new ports</var> into a <a href=#dfn-read-only-array title=dfn-read-only-array>read only</a> array.</p>

</li>

<li><p>Let the <code title=dom-MessageEvent-ports><a href=#dom-messageevent-ports>ports</a></code>
attribute of the event be the <var title="">new ports</var>
array.</li>
@@ -79967,9 +79985,9 @@ <h4 id=message-ports><span class=secno>11.5.3 </span>Message ports</h4>
attribute of the event have the value of <var
title="">message</var>, the method's first argument.</p></li>

<li><p>Let the <code
title="dom-MessageEvent-ports">ports</code> attribute
of the event be an array containing only <var
<li><p>Let the <code title="dom-MessageEvent-ports">ports</code>
attribute of the event be a <span title="dfn-read-only-array">read
only</span> array containing only <var
title="">port2</var>.</p></li>

<li><p>Return <var title="">port1</var> from the method, but

0 comments on commit 4690d9a

Please sign in to comment.