You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
greater than the number of <code><ahref="#domrect">DOMRect</a></code> objects associated with the object. Otherwise, the <code><ahref="#domrect">DOMRect</a></code> object at
<p>Objects implementing the <code><ahref="#domrect">DOMRect</a></code> interface represent a rectangular box. The type of box is specified by the method that returns a
1616
-
<code><ahref="#domrect">DOMRect</a></code> object. A <code><ahref="#domrect">DOMRect</a></code> object has a <i>readonly</i> flag, which is unset unless otherwise stated.</p>
1615
+
<p>Objects implementing the <code><ahref="#domrect">DOMRect</a></code> or <code><ahref="#domrectimmutable">DOMRectImmutable</a></code> interface represent a rectangular box. The type of box is specified by the
1616
+
method or attribute that returns a <code><ahref="#domrect">DOMRect</a></code> or <code><ahref="#domrectimmutable">DOMRectImmutable</a></code> object. The interfaces are identical except the attributes of
1617
+
<code><ahref="#domrectimmutable">DOMRectImmutable</a></code> are readonly.
<p>The <dfnid="dom-domrect-top" title="dom-DOMRect-top"><code>top</code></dfn> attribute gives the y-coordinate, relative to the <ahref="#viewport">viewport</a> origin, of the top of
1641
-
the rectangle box. On getting, it must return the current value. On setting, if the <i>readonly</i> flag is set, a
1642
-
<codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#nomodificationallowederror">NoModificationAllowedError</a></code> exception must be thrown. Otherwise, the current value must be set to the new value.</p>
1653
+
the rectangle box. On getting, it must return the current value. On setting, the current value must be set to the new value.</p>
1643
1654
1644
1655
<p>The <dfnid="dom-domrect-right" title="dom-DOMRect-right"><code>right</code></dfn> attribute gives the x-coordinate, relative to the <ahref="#viewport">viewport</a> origin, of the
1645
-
right of the rectangle box. On getting, it must return the current value. On setting, if the <i>readonly</i> flag is set, a
1646
-
<codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#nomodificationallowederror">NoModificationAllowedError</a></code> exception must be thrown. Otherwise, the current value must be set to the new value.</p>
1656
+
right of the rectangle box. On getting, it must return the current value. On setting, the current value must be set to the new value.</p>
1647
1657
1648
1658
<p>The <dfnid="dom-domrect-bottom" title="dom-DOMRect-bottom"><code>bottom</code></dfn> attribute gives the y-coordinate, relative to the <ahref="#viewport">viewport</a> origin, of the
1649
-
bottom of the rectangle box. On getting, it must return the current value. On setting, if the <i>readonly</i> flag is set, a
1650
-
<codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#nomodificationallowederror">NoModificationAllowedError</a></code> exception must be thrown. Otherwise, the current value must be set to the new value.</p>
1659
+
bottom of the rectangle box. On getting, it must return the current value. On setting, the current value must be set to the new value.</p>
1651
1660
1652
1661
<p>The <dfnid="dom-domrect-left" title="dom-DOMRect-left"><code>left</code></dfn> attribute gives the x-coordinate, relative to the <ahref="#viewport">viewport</a> origin, of the left
1653
-
of the rectangle box. On getting, it must return the current value. On setting, if the <i>readonly</i> flag is set, a
1654
-
<codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#nomodificationallowederror">NoModificationAllowedError</a></code> exception must be thrown. Otherwise, the current value must be set to the new value.</p>
1662
+
of the rectangle box. On getting, it must return the current value. On setting, the current value must be set to the new value.</p>
1655
1663
1656
1664
<p>The <dfnid="dom-domrect-width" title="dom-DOMRect-width"><code>width</code></dfn> attribute, on getting, must return the value of <codetitle="dom-DOMRect-right"><ahref="#dom-domrect-right">right</a></code> minus
1657
-
<codetitle="dom-DOMRect-left"><ahref="#dom-domrect-left">left</a></code>. On setting, if the <i>readonly</i> flag is set, a <codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#nomodificationallowederror">NoModificationAllowedError</a></code>
1658
-
exception must be thrown. Otherwise, the <codetitle="dom-DOMRect-right"><ahref="#dom-domrect-right">right</a></code> attribute must be set to the new value plus the value of
1665
+
<codetitle="dom-DOMRect-left"><ahref="#dom-domrect-left">left</a></code>. On setting, the <codetitle="dom-DOMRect-right"><ahref="#dom-domrect-right">right</a></code> attribute must be set to the new value plus the value of
<p>The <dfnid="dom-domrect-height" title="dom-DOMRect-height"><code>height</code></dfn> attribute, on getting, must return the value of <codetitle="dom-DOMRect-bottom"><ahref="#dom-domrect-bottom">bottom</a></code>
1662
-
minus <codetitle="dom-DOMRect-top"><ahref="#dom-domrect-top">top</a></code>. On setting, if the <i>readonly</i> flag is set, a <codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#nomodificationallowederror">NoModificationAllowedError</a></code>
1663
-
exception must be thrown. Otherwise, the <codetitle="dom-DOMRect-bottom"><ahref="#dom-domrect-bottom">bottom</a></code> attribute must be set to the new value plus the value of
minus <codetitle="dom-DOMRect-top"><ahref="#dom-domrect-top">top</a></code>. On setting, the <codetitle="dom-DOMRect-bottom"><ahref="#dom-domrect-bottom">bottom</a></code> attribute must be set to the new value plus the value
1670
+
of <codetitle="dom-DOMRect-top"><ahref="#dom-domrect-top">top</a></code>.</p>
<dfnid="dom-domrectimmutable-width" title="dom-DOMRectImmutable-width"><code>width</code></dfn> and <dfnid="dom-domrectimmutable-height" title="dom-DOMRectImmutable-height"><code>height</code></dfn> attributes of the
1675
+
<code><ahref="#domrectimmutable">DOMRectImmutable</a></code> interface, on getting, must behave the same as the attribute of the same name on the <code><ahref="#domrect">DOMRect</a></code> interface.
<p>Objects implementing the <code><ahref="#domquad">DOMQuad</a></code> interface represents a quadrilateral shape. <code><ahref="#domquad">DOMQuad</a></code> objects have an <dfnid="associated-bounding-rectangle">associated
1719
-
bounding rectangle</dfn> set to a <code><ahref="#domrect">DOMRect</a></code> object when created.
1730
+
bounding rectangle</dfn> set to a <code><ahref="#domrectimmutable">DOMRectImmutable</a></code> object when created.
<li><p>Let <var>point 4</var> be a new <code><ahref="#dompoint">DOMPoint</a></code> object with <codetitle="dom-DOMPoint-x"><ahref="#dom-dompoint-x">x</a></code> set to <var>left</var>,
1750
1762
<codetitle="dom-DOMPoint-y"><ahref="#dom-dompoint-y">y</a></code> set to <var>bottom</var>, <codetitle="dom-DOMPoint-z"><ahref="#dom-dompoint-z">z</a></code> set to zero and <codetitle="dom-DOMPoint-w"><ahref="#dom-dompoint-w">w</a></code> set to
1751
1763
one.
1752
-
<li><p>Let <var>bounds</var> be a new <code><ahref="#domrect">DOMRect</a></code> object with its attributes set to the values of the namesake attributes in<var>rect</var>, and
1753
-
with the <i>readonly</i> flag set.
1764
+
<li><p>Let <var>bounds</var> be a new <code><ahref="#domrectimmutable">DOMRectImmutable</a></code> object with its attributes set to the values of the namesake attributes in
<li><p>Let <var>point 4</var> be a new <code><ahref="#dompoint">DOMPoint</a></code> object with its attributes set to the values of the namesake dictionary members in
1765
1777
<var>p4</var>.
1766
-
<li><p>Let <var>bounds</var> be a new <code><ahref="#domrect">DOMRect</a></code> object describing the bounding box of <var>point 1</var>, <var>point 2</var>, <var>point 3</var>
1767
-
and <var>point 4</var>, and with the <i>readonly</i> flag set.
1778
+
<li><p>Let <var>bounds</var> be a new <code><ahref="#domrectimmutable">DOMRectImmutable</a></code> object describing the bounding box of <var>point 1</var>, <var>point 2</var>, <var>point
1779
+
3</var>and <var>point 4</var>.
1768
1780
</ol>
1769
1781
<li><p>Return a new <code><ahref="#domquad">DOMQuad</a></code> with <codetitle="dom-DOMQuad-p1"><ahref="#dom-domquad-p1">p1</a></code> set to <var>point 1</var>, <codetitle="dom-DOMQuad-p2"><ahref="#dom-domquad-p2">p2</a></code> set to
1770
1782
<var>point 2</var>, <codetitle="dom-DOMQuad-p3"><ahref="#dom-domquad-p3">p3</a></code> set to <var>point 3</var> and <codetitle="dom-DOMQuad-p4"><ahref="#dom-domquad-p4">p4</a></code> set to <var>point 4</var>, and
<ahref="#dompoint">DOMPoint</a><ahref="#dom-geometryutils-convertpointfromnode" title="dom-GeometryUtils-convertPointFromNode">convertPointFromNode</a>(<ahref="#dompointliteral">DOMPointLiteral</a> point, <!--
0 commit comments