Skip to content

Commit 895567d

Browse files
author
Simon Pieters
committed
[cssom*] Clarify which things return the same object and which return new objects. https://www.w3.org/Bugs/Public/show_bug.cgi?id=22885
--HG-- extra : rebase_source : d9dc27b7351bd45299463642991c91cb9e8990c2
1 parent 00236fc commit 895567d

4 files changed

Lines changed: 58 additions & 54 deletions

File tree

cssom-view/Overview.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<h1>CSSOM View Module</h1>
1818

19-
<h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 12 August 2013</h2>
19+
<h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 13 August 2013</h2>
2020

2121
<dl>
2222

@@ -83,7 +83,7 @@ <h2 class="no-num no-toc" id="sotd">Status of This Document</h2>
8383
can be found in the <a href="http://www.w3.org/TR/">W3C technical reports
8484
index at http://www.w3.org/TR/.</a></em>
8585

86-
<p>This is the 12 August 2013 Editor's Draft of CSSOM View. Please send
86+
<p>This is the 13 August 2013 Editor's Draft of CSSOM View. Please send
8787
comments to
8888
<a href="mailto:www-style@w3.org?subject=%5Bcssom-view%5D%20">www-style@w3.org</a>
8989
(<a href="http://lists.w3.org/Archives/Public/www-style/">archived</a>)
@@ -501,7 +501,7 @@ <h2 id="extensions-to-the-window-interface"><span class="secno">5 </span>Extensi
501501

502502
partial interface <a class="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#window">Window</a> {
503503
<a href="#mediaquerylist">MediaQueryList</a> <a href="#dom-window-matchmedia" title="dom-Window-matchMedia">matchMedia</a>(DOMString query);
504-
readonly attribute <a href="#screen">Screen</a> <a href="#dom-window-screen" title="dom-Window-screen">screen</a>;
504+
[SameObject] readonly attribute <a href="#screen">Screen</a> <a href="#dom-window-screen" title="dom-Window-screen">screen</a>;
505505

506506
// viewport
507507
readonly attribute double <a href="#dom-window-innerwidth" title="dom-Window-innerWidth">innerWidth</a>;
@@ -535,8 +535,7 @@ <h2 id="extensions-to-the-window-interface"><span class="secno">5 </span>Extensi
535535
</ol>
536536

537537
<p>The <dfn id="dom-window-screen" title="dom-Window-screen"><code>screen</code></dfn> attribute must return the <code><a href="#screen">Screen</a></code> object
538-
associated with the <code class="external" data-anolis-spec="html"><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#window">Window</a></code> object. It always returns the same
539-
object.</p>
538+
associated with the <code class="external" data-anolis-spec="html"><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#window">Window</a></code> object.</p>
540539
<p class="note">Accessing <code title="dom-Window-screen"><a href="#dom-window-screen">screen</a></code> through a <code class="external" data-anolis-spec="html"><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#windowproxy">WindowProxy</a></code> object might yield different
541540
results when the <code class="external" data-anolis-spec="dom"><a href="http://dom.spec.whatwg.org/#document">Document</a></code> is navigated.</p>
542541

cssom-view/Overview.src.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ <h2>Extensions to the <code title>Window</code> Interface</h2>
463463

464464
partial interface <span data-anolis-spec=html>Window</span> {
465465
<span>MediaQueryList</span> <span title=dom-Window-matchMedia>matchMedia</span>(DOMString query);
466-
readonly attribute <span>Screen</span> <span title=dom-Window-screen>screen</span>;
466+
[SameObject] readonly attribute <span>Screen</span> <span title=dom-Window-screen>screen</span>;
467467

468468
// viewport
469469
readonly attribute double <span title=dom-Window-innerWidth>innerWidth</span>;
@@ -497,8 +497,7 @@ <h2>Extensions to the <code title>Window</code> Interface</h2>
497497
</ol>
498498

499499
<p>The <dfn title=dom-Window-screen><code>screen</code></dfn> attribute must return the <code>Screen</code> object
500-
associated with the <code data-anolis-spec=html>Window</code> object. It always returns the same
501-
object.</p>
500+
associated with the <code data-anolis-spec=html>Window</code> object.</p>
502501
<p class='note'>Accessing <code title=dom-Window-screen>screen</code> through a <code data-anolis-spec=html>WindowProxy</code> object might yield different
503502
results when the <code data-anolis-spec=dom>Document</code> is navigated.</p>
504503

0 commit comments

Comments
 (0)