|
27 | 27 |
|
28 | 28 | <h1 id=cssom-view-module>CSSOM View Module</h1> |
29 | 29 |
|
30 | | - <h2 class="no-num no-toc" id=w3c-doctype>Editor's Draft 25 May 2010</h2> |
| 30 | + <h2 class="no-num no-toc" id=w3c-doctype>Editor's Draft 26 May 2010</h2> |
31 | 31 |
|
32 | 32 | <dl> |
33 | 33 | <dt>This Version: |
34 | 34 |
|
35 | 35 | <dd><a |
36 | | - href="http://www.w3.org/TR/2010/ED-cssom-view-20100525/">http://www.w3.org/TR/2010/ED-cssom-view-20100525/</a> |
| 36 | + href="http://www.w3.org/TR/2010/ED-cssom-view-20100526/">http://www.w3.org/TR/2010/ED-cssom-view-20100526/</a> |
37 | 37 |
|
38 | 38 | <dt>Latest Version: |
39 | 39 |
|
@@ -257,10 +257,9 @@ <h3 id=terminology><span class=secno>2.2. </span>Terminology</h3> |
257 | 257 | <p><dfn id=mouseevent><code>MouseEvent</code></dfn> is defined in DOM Level |
258 | 258 | 2 Events. [<cite><a href="#ref-dom2events">DOM2Events</a></cite>] |
259 | 259 |
|
260 | | - <p> <dfn id=compare-media-queries>Compare media queries</dfn>, <dfn |
261 | | - id=parse-a-media-query>parse a media query</dfn>, and <dfn |
262 | | - id=serialize-a-media-query>serialize a media query</dfn> are defined by |
263 | | - the CSSOM. [<cite><a href="#ref-cssom">CSSOM</a></cite>] |
| 260 | + <p> <dfn id=compare-media-queries>Compare media queries</dfn> and <dfn |
| 261 | + id=parse-a-media-query>parse a media query</dfn> are defined by the CSSOM. |
| 262 | + [<cite><a href="#ref-cssom">CSSOM</a></cite>] |
264 | 263 |
|
265 | 264 | <p> <dfn id=html-element>HTML element</dfn>, <dfn |
266 | 265 | id=htmlelement><code>HTMLElement</code></dfn>, <dfn id=queue-a-task>queue |
@@ -484,13 +483,13 @@ <h3 id=the-stylemedia-interface><span class=secno>4.1. </span>The <code |
484 | 483 | readonly attribute DOMString <a href="#dom-stylemedia-type" title=dom-StyleMedia-type>type</a>; |
485 | 484 | boolean <a href="#dom-stylemedia-matchmedium" title=dom-StyleMedia-matchMedium>matchMedium</a>(DOMString <var title="">medium</var>); |
486 | 485 |
|
487 | | - void <a href="#dom-StyleMedia-addMediumListener" title=dom-StyleMedia-addMediumListener>addMediumListener</a>(DOMString <var title="">medium</var>, <a href="#mediaquerycallback">MediaQueryCallback</a> <var title="">mediumcallback</var>); |
488 | | - void <a href="#dom-StyleMedia-removeMediumListener" title=dom-StyleMedia-removeMediumListener>removeMediumListener</a>(DOMString <var title="">medium</var>, <a href="#mediaquerycallback">MediaQueryCallback</a> <var title="">mediumcallback</var>); |
| 486 | + void <a href="#dom-StyleMedia-addMediumListener" title=dom-StyleMedia-addMediumListener>addMediumListener</a>(DOMString <var title="">medium</var>, <a href="#booleancallback">BooleanCallback</a> <var title="">mediumcallback</var>); |
| 487 | + void <a href="#dom-StyleMedia-removeMediumListener" title=dom-StyleMedia-removeMediumListener>removeMediumListener</a>(DOMString <var title="">medium</var>, <a href="#booleancallback">BooleanCallback</a> <var title="">mediumcallback</var>); |
489 | 488 | }; |
490 | 489 |
|
491 | 490 | [Callback=FunctionOnly, NoInterfaceObject] |
492 | | -interface <dfn id=mediaquerycallback>MediaQueryCallback</dfn> { |
493 | | - void <span>handleEvent</span>(<a href="#mediaquerychange">MediaQueryChange</a> <var title="">mediaquerychange</var>); |
| 491 | +interface <dfn id=booleancallback>BooleanCallback</dfn> { |
| 492 | + void <span>handleEvent</span>(boolean <var title="">arg</var>); |
494 | 493 | };</pre> |
495 | 494 |
|
496 | 495 | <p>The <dfn id=dom-stylemedia-type |
@@ -537,9 +536,9 @@ <h3 id=the-stylemedia-interface><span class=secno>4.1. </span>The <code |
537 | 536 | <pre><code>var isColorDevice = styleMedia.matchMedium("(color)")</code></pre> |
538 | 537 | </div> |
539 | 538 |
|
540 | | - <p>Each <a href="#window"><code>Window</code></a> has an associated <dfn |
541 | | - id=list-of-media-query-listeners>list of media query listeners</dfn>. Each |
542 | | - listener consists of a media query and a callback. |
| 539 | + <p>Each <a href="#window"><code>Window</code></a> has an associated ordered |
| 540 | + <dfn id=list-of-media-query-listeners>list of media query listeners</dfn>. |
| 541 | + Each listener consists of a media query and a callback. |
543 | 542 |
|
544 | 543 | <p class=note>Due to the rules for <a |
545 | 544 | href="#dom-StyleMedia-addMediumListener"><code |
@@ -606,26 +605,10 @@ <h3 id=the-stylemedia-interface><span class=secno>4.1. </span>The <code |
606 | 605 | changes in evaluation then for each media query of which the evaluation |
607 | 606 | changes, in the order of the <a href="#list-of-media-query-listeners">list |
608 | 607 | of media query listeners</a>, <a href="#queue-a-task">queue a task</a> |
609 | | - that invokes the associated callback, passing as argument a <a |
610 | | - href="#mediaquerychange"><code>MediaQueryChange</code></a> object. |
611 | | - |
612 | | - <pre class=idl>[NoInterfaceObject] |
613 | | -interface <dfn id=mediaquerychange>MediaQueryChange</dfn> { |
614 | | - readonly attribute DOMString <a href="#dom-mediaquerychange-mediatext" title=dom-MediaQueryChange-mediaText>mediaText</a>; |
615 | | - readonly attribute boolean <a href="#dom-mediaquerychange-matches" title=dom-MediaQueryChange-matches>matches</a>; |
616 | | -};</pre> |
617 | | - |
618 | | - <p>The <dfn id=dom-mediaquerychange-mediatext |
619 | | - title=dom-MediaQueryChange-mediaText><code>mediaText</code></dfn> |
620 | | - attribute <em class=ct>must</em> return a <a |
621 | | - href="#serialize-a-media-query" title="serialize a media |
622 | | - query">serialization</a> of the media query. |
623 | | - |
624 | | - <p>The <dfn id=dom-mediaquerychange-matches |
625 | | - title=dom-MediaQueryChange-matches><code>matches</code></dfn> attribute |
626 | | - <em class=ct>must</em> return whether the media query matches the state of |
627 | | - the rendered <a href="#document"><code>Document</code></a> at the time the |
628 | | - <a href="#task">task</a> was <a href="#queue-a-task" title="queue a |
| 608 | + that invokes the associated callback, passing as argument whether the |
| 609 | + media query matches the state of the rendered <a |
| 610 | + href="#document"><code>Document</code></a> at the time the <a |
| 611 | + href="#task">task</a> was <a href="#queue-a-task" title="queue a |
629 | 612 | task">queued</a>. |
630 | 613 |
|
631 | 614 | <h3 id=the-screen-interface><span class=secno>4.2. </span>The <code |
@@ -1546,10 +1529,10 @@ <h2 class=no-num id=references>References</h2> |
1546 | 1529 | <h2 class=no-num id=acknowledgments>Acknowledgments</h2> |
1547 | 1530 |
|
1548 | 1531 | <p>The editor would like to thank Alexey Feldgendler, Björn |
1549 | | - Höhrmann, David Vest, Garrett Smith, Hallvord R. M. Steen, Maciej |
1550 | | - Stachowiak, Michael Dyck, Mike Wilson, Morten Stenshorne, Peter-Paul Koch, |
1551 | | - Rachel Kmetz, Robert O'Callahan, Sam Weinig, Simon Pieters, Sylvain |
1552 | | - Galineau, Tarquin Wilton-Jones, Thomas Moore, and Xiaomei |
| 1532 | + Höhrmann, David Vest, Garrett Smith, Hallvord R. M. Steen, Luiz |
| 1533 | + Agostini, Maciej Stachowiak, Michael Dyck, Mike Wilson, Morten Stenshorne, |
| 1534 | + Peter-Paul Koch, Rachel Kmetz, Robert O'Callahan, Sam Weinig, Simon |
| 1535 | + Pieters, Sylvain Galineau, Tarquin Wilton-Jones, Thomas Moore, and Xiaomei |
1553 | 1536 | Ji<!-- should actually use real name here --> for their contributions to |
1554 | 1537 | this document. |
1555 | 1538 |
|
|
0 commit comments