Skip to content

Commit a8076f2

Browse files
author
Simon Pieters
committed
[cssom-view] Editorial: Move ScrollOptions* dicts to the Element IDL where they are used.
1 parent 6d5aae4 commit a8076f2

2 files changed

Lines changed: 18 additions & 14 deletions

File tree

cssom-view/Overview.html

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -496,12 +496,6 @@ <h2 id="extensions-to-the-window-interface"><span class="secno">5 </span>Extensi
496496
dictionary <dfn id="scrolloptions">ScrollOptions</dfn> {
497497
<a href="#scrollbehavior">ScrollBehavior</a> behavior = "auto";
498498
};
499-
dictionary <dfn id="scrolloptionshorizontal">ScrollOptionsHorizontal</dfn> : <a href="#scrolloptions">ScrollOptions</a> {
500-
double x;
501-
};
502-
dictionary <dfn id="scrolloptionsvertical">ScrollOptionsVertical</dfn> : <a href="#scrolloptions">ScrollOptions</a> {
503-
double y;
504-
};
505499

506500
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> {
507501
<a href="#mediaquerylist">MediaQueryList</a> <a href="#dom-window-matchmedia" title="dom-Window-matchMedia">matchMedia</a>(DOMString query);
@@ -831,7 +825,14 @@ <h3 id="the-caretposition-interface"><span class="secno">6.1 </span>The <code ti
831825

832826
<h2 id="extensions-to-the-element-interface"><span class="secno">7 </span>Extensions to the <code title="">Element</code> Interface</h2>
833827

834-
<pre class="idl">partial interface <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#element">Element</a> {
828+
<pre class="idl">dictionary <dfn id="scrolloptionshorizontal">ScrollOptionsHorizontal</dfn> : <a href="#scrolloptions">ScrollOptions</a> {
829+
double x;
830+
};
831+
dictionary <dfn id="scrolloptionsvertical">ScrollOptionsVertical</dfn> : <a href="#scrolloptions">ScrollOptions</a> {
832+
double y;
833+
};
834+
835+
partial interface <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#element">Element</a> {
835836
<a href="#clientrectlist">ClientRectList</a> <a href="#dom-element-getclientrects" title="dom-Element-getClientRects">getClientRects</a>();
836837
<a href="#clientrect">ClientRect</a> <a href="#dom-element-getboundingclientrect" title="dom-Element-getBoundingClientRect">getBoundingClientRect</a>();
837838
void <a href="#dom-element-scrollintoview" title="dom-Element-scrollIntoView">scrollIntoView</a>(optional boolean top = true, optional <a href="#scrolloptions">ScrollOptions</a> options);
@@ -1592,6 +1593,7 @@ <h2 class="no-num" id="acknowledgments">Acknowledgments</h2>
15921593
Scott Johnson,
15931594
Sebastian Zartner,
15941595
Sylvain Galineau,
1596+
Tab Atkins,
15951597
Tarquin Wilton-Jones,
15961598
Thomas Moore, and
15971599
Xiaomei Ji<!-- should actually use real name here -->

cssom-view/Overview.src.html

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -458,12 +458,6 @@ <h2>Extensions to the <code title>Window</code> Interface</h2>
458458
dictionary <dfn>ScrollOptions</dfn> {
459459
<span>ScrollBehavior</span> behavior = "auto";
460460
};
461-
dictionary <dfn>ScrollOptionsHorizontal</dfn> : <span>ScrollOptions</span> {
462-
double x;
463-
};
464-
dictionary <dfn>ScrollOptionsVertical</dfn> : <span>ScrollOptions</span> {
465-
double y;
466-
};
467461

468462
partial interface <span data-anolis-spec=html>Window</span> {
469463
<span>MediaQueryList</span> <span title=dom-Window-matchMedia>matchMedia</span>(DOMString query);
@@ -793,7 +787,14 @@ <h3>The <code title>CaretPosition</code> Interface</h3>
793787

794788
<h2>Extensions to the <code title>Element</code> Interface</h2>
795789

796-
<pre class=idl>partial interface <span data-anolis-spec=dom>Element</span> {
790+
<pre class=idl>dictionary <dfn>ScrollOptionsHorizontal</dfn> : <span>ScrollOptions</span> {
791+
double x;
792+
};
793+
dictionary <dfn>ScrollOptionsVertical</dfn> : <span>ScrollOptions</span> {
794+
double y;
795+
};
796+
797+
partial interface <span data-anolis-spec=dom>Element</span> {
797798
<span>ClientRectList</span> <span title=dom-Element-getClientRects>getClientRects</span>();
798799
<span>ClientRect</span> <span title=dom-Element-getBoundingClientRect>getBoundingClientRect</span>();
799800
void <span title=dom-Element-scrollIntoView>scrollIntoView</span>(optional boolean top = true, optional <span>ScrollOptions</span> options);
@@ -1534,6 +1535,7 @@ <h2 class="no-num">Acknowledgments</h2>
15341535
Scott Johnson,
15351536
Sebastian Zartner,
15361537
Sylvain Galineau,
1538+
Tab Atkins,
15371539
Tarquin Wilton-Jones,
15381540
Thomas Moore, and
15391541
Xiaomei Ji<!-- should actually use real name here -->

0 commit comments

Comments
 (0)