author | Aryeh Gregor <ayg@aryeh.name> |
Thu, 01 Mar 2012 13:35:13 -0500 | |
changeset 88214 | ed83c2b26332ccfc3c5abb95944d0b0dce83bc1e |
parent 88213 | a59316d3580c9fda223b6f9afc30ad4dc4529b72 |
child 88215 | f2ef311be88b47af67d46f1fd0babdea6d870267 |
push id | 6742 |
push user | ryanvm@gmail.com |
push date | Sun, 04 Mar 2012 03:23:31 +0000 |
treeherder | mozilla-inbound@7eb6749bbc17 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | sicking |
bugs | 711047 |
milestone | 13.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/dom/interfaces/range/nsIDOMRange.idl +++ b/dom/interfaces/range/nsIDOMRange.idl @@ -45,75 +45,47 @@ * For more information on this interface please see * http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ */ [scriptable, builtinclass, uuid(a059eea8-fece-4c14-93d3-7f50a944ae43)] interface nsIDOMRange : nsISupports { readonly attribute nsIDOMNode startContainer; - // raises(DOMException) on retrieval - readonly attribute long startOffset; - // raises(DOMException) on retrieval - readonly attribute nsIDOMNode endContainer; - // raises(DOMException) on retrieval - readonly attribute long endOffset; - // raises(DOMException) on retrieval - readonly attribute boolean collapsed; - // raises(DOMException) on retrieval - readonly attribute nsIDOMNode commonAncestorContainer; - // raises(DOMException) on retrieval - void setStart(in nsIDOMNode refNode, in long offset) - raises(RangeException, DOMException); - void setEnd(in nsIDOMNode refNode, in long offset) - raises(RangeException, DOMException); - void setStartBefore(in nsIDOMNode refNode) - raises(RangeException, DOMException); - void setStartAfter(in nsIDOMNode refNode) - raises(RangeException, DOMException); - void setEndBefore(in nsIDOMNode refNode) - raises(RangeException, DOMException); - void setEndAfter(in nsIDOMNode refNode) - raises(RangeException, DOMException); - void collapse(in boolean toStart) - raises(DOMException); - void selectNode(in nsIDOMNode refNode) - raises(RangeException, DOMException); - void selectNodeContents(in nsIDOMNode refNode) - raises(RangeException, DOMException); + void setStart(in nsIDOMNode refNode, in long offset); + void setEnd(in nsIDOMNode refNode, in long offset); + void setStartBefore(in nsIDOMNode refNode); + void setStartAfter(in nsIDOMNode refNode); + void setEndBefore(in nsIDOMNode refNode); + void setEndAfter(in nsIDOMNode refNode); + void collapse(in boolean toStart); + void selectNode(in nsIDOMNode refNode); + void selectNodeContents(in nsIDOMNode refNode); // CompareHow const unsigned short START_TO_START = 0; const unsigned short START_TO_END = 1; const unsigned short END_TO_END = 2; const unsigned short END_TO_START = 3; short compareBoundaryPoints(in unsigned short how, - in nsIDOMRange sourceRange) - raises(DOMException); - void deleteContents() - raises(DOMException); - nsIDOMDocumentFragment extractContents() - raises(DOMException); - nsIDOMDocumentFragment cloneContents() - raises(DOMException); - void insertNode(in nsIDOMNode newNode) - raises(DOMException, RangeException); - void surroundContents(in nsIDOMNode newParent) - raises(DOMException, RangeException); - nsIDOMRange cloneRange() - raises(DOMException); - DOMString toString() - raises(DOMException); + in nsIDOMRange sourceRange); + void deleteContents(); + nsIDOMDocumentFragment extractContents(); + nsIDOMDocumentFragment cloneContents(); + void insertNode(in nsIDOMNode newNode); + void surroundContents(in nsIDOMNode newParent); + nsIDOMRange cloneRange(); + DOMString toString(); void detach(); // This method comes from // http://html5.org/specs/dom-parsing.html#extensions-to-the-range-interface nsIDOMDocumentFragment createContextualFragment(in DOMString fragment); // This returns true if parent+offset equals either // of the boundary points or is between them.