| Index: core/dom/Range.idl
|
| diff --git a/core/dom/Range.idl b/core/dom/Range.idl
|
| index d3dd1eb2f0e81c9a7c08c4598388193b81236e3c..e73f6d37add27f98cd288cdf59cc01bc0fef2402 100644
|
| --- a/core/dom/Range.idl
|
| +++ b/core/dom/Range.idl
|
| @@ -22,14 +22,15 @@
|
| [
|
| Constructor,
|
| ConstructorCallWith=Document,
|
| + WillBeGarbageCollected,
|
| ] interface Range {
|
|
|
| - [RaisesException=Getter] readonly attribute Node startContainer;
|
| - [RaisesException=Getter] readonly attribute long startOffset;
|
| - [RaisesException=Getter] readonly attribute Node endContainer;
|
| - [RaisesException=Getter] readonly attribute long endOffset;
|
| - [RaisesException=Getter] readonly attribute boolean collapsed;
|
| - [RaisesException=Getter] readonly attribute Node commonAncestorContainer;
|
| + readonly attribute Node startContainer;
|
| + readonly attribute long startOffset;
|
| + readonly attribute Node endContainer;
|
| + readonly attribute long endOffset;
|
| + readonly attribute boolean collapsed;
|
| + readonly attribute Node commonAncestorContainer;
|
|
|
| [RaisesException] void setStart(Node refNode, long offset);
|
| [RaisesException] void setEnd(Node refNode, long offset);
|
| @@ -37,7 +38,7 @@
|
| [RaisesException] void setStartAfter(Node refNode);
|
| [RaisesException] void setEndBefore(Node refNode);
|
| [RaisesException] void setEndAfter(Node refNode);
|
| - [RaisesException] void collapse([Default=Undefined] optional boolean toStart);
|
| + void collapse([Default=Undefined] optional boolean toStart);
|
| [RaisesException] void selectNode(Node refNode);
|
| [RaisesException] void selectNodeContents(Node refNode);
|
|
|
| @@ -54,10 +55,10 @@
|
| [RaisesException, CustomElementCallbacks] DocumentFragment cloneContents();
|
| [RaisesException, CustomElementCallbacks] void insertNode(Node newNode);
|
| [RaisesException, CustomElementCallbacks] void surroundContents(Node newParent);
|
| - [RaisesException] Range cloneRange();
|
| - [RaisesException] DOMString toString();
|
| + Range cloneRange();
|
| + DOMString toString();
|
|
|
| - [RaisesException] void detach();
|
| + [DeprecateAs=RangeDetach] void detach();
|
|
|
| [RaisesException] boolean isPointInRange(Node refNode, long offset);
|
| [RaisesException] short comparePoint(Node refNode, long offset);
|
| @@ -81,7 +82,7 @@
|
| const unsigned short NODE_BEFORE_AND_AFTER = 2;
|
| const unsigned short NODE_INSIDE = 3;
|
|
|
| - [RaisesException] short compareNode([Default=Undefined] optional Node refNode);
|
| + [RaisesException, MeasureAs=RangeCompareNode] short compareNode([Default=Undefined] optional Node refNode);
|
|
|
| - [RaisesException] void expand([Default=Undefined] optional DOMString unit);
|
| + [RaisesException, MeasureAs=RangeExpand] void expand([Default=Undefined] optional DOMString unit);
|
| };
|
|
|