| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Apple Computer, Inc. | 2 * Copyright (C) 2006 Apple Computer, Inc. |
| 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 void collapse(optional boolean toStart = false); | 41 void collapse(optional boolean toStart = false); |
| 42 [RaisesException] void selectNode(Node node); | 42 [RaisesException] void selectNode(Node node); |
| 43 [RaisesException] void selectNodeContents(Node node); | 43 [RaisesException] void selectNodeContents(Node node); |
| 44 | 44 |
| 45 const unsigned short START_TO_START = 0; | 45 const unsigned short START_TO_START = 0; |
| 46 const unsigned short START_TO_END = 1; | 46 const unsigned short START_TO_END = 1; |
| 47 const unsigned short END_TO_END = 2; | 47 const unsigned short END_TO_END = 2; |
| 48 const unsigned short END_TO_START = 3; | 48 const unsigned short END_TO_START = 3; |
| 49 [RaisesException] short compareBoundaryPoints(unsigned short how, Range sour
ceRange); | 49 [RaisesException] short compareBoundaryPoints(unsigned short how, Range sour
ceRange); |
| 50 | 50 |
| 51 [RaisesException, CustomElementCallbacks] void deleteContents(); | 51 [RaisesException, CEReactions, CustomElementCallbacks] void deleteContents()
; |
| 52 [NewObject, RaisesException, CustomElementCallbacks] DocumentFragment extrac
tContents(); | 52 [NewObject, RaisesException, CEReactions, CustomElementCallbacks] DocumentFr
agment extractContents(); |
| 53 [NewObject, RaisesException, CustomElementCallbacks] DocumentFragment cloneC
ontents(); | 53 [NewObject, RaisesException, CEReactions, CustomElementCallbacks] DocumentFr
agment cloneContents(); |
| 54 [RaisesException, CustomElementCallbacks] void insertNode(Node node); | 54 [RaisesException, CEReactions, CustomElementCallbacks] void insertNode(Node
node); |
| 55 [RaisesException, CustomElementCallbacks] void surroundContents(Node newPare
nt); | 55 [RaisesException, CEReactions, CustomElementCallbacks] void surroundContents
(Node newParent); |
| 56 | 56 |
| 57 [NewObject] Range cloneRange(); | 57 [NewObject] Range cloneRange(); |
| 58 [MeasureAs=RangeDetach] void detach(); | 58 [MeasureAs=RangeDetach] void detach(); |
| 59 | 59 |
| 60 [RaisesException] boolean isPointInRange(Node node, long offset); | 60 [RaisesException] boolean isPointInRange(Node node, long offset); |
| 61 [RaisesException] short comparePoint(Node node, long offset); | 61 [RaisesException] short comparePoint(Node node, long offset); |
| 62 | 62 |
| 63 [RaisesException] boolean intersectsNode(Node node); | 63 [RaisesException] boolean intersectsNode(Node node); |
| 64 | 64 |
| 65 stringifier; | 65 stringifier; |
| 66 | 66 |
| 67 // CSSOM View Module | 67 // CSSOM View Module |
| 68 // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-range-interface | 68 // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-range-interface |
| 69 // FIXME: getClientRect() and getBoundingClientRect() should | 69 // FIXME: getClientRect() and getBoundingClientRect() should |
| 70 // return DOMRectList and DOMRect respectively. | 70 // return DOMRectList and DOMRect respectively. |
| 71 ClientRectList getClientRects(); | 71 ClientRectList getClientRects(); |
| 72 ClientRect getBoundingClientRect(); | 72 ClientRect getBoundingClientRect(); |
| 73 | 73 |
| 74 // DOM Parsing and Serialization | 74 // DOM Parsing and Serialization |
| 75 // https://dvcs.w3.org/hg/innerhtml/raw-file/tip/index.html#extensions-to-th
e-range-interface | 75 // https://dvcs.w3.org/hg/innerhtml/raw-file/tip/index.html#extensions-to-th
e-range-interface |
| 76 [NewObject, RaisesException, CustomElementCallbacks] DocumentFragment create
ContextualFragment(DOMString fragment); | 76 [NewObject, RaisesException, CEReactions, CustomElementCallbacks] DocumentFr
agment createContextualFragment(DOMString fragment); |
| 77 | 77 |
| 78 // Non-standard API | 78 // Non-standard API |
| 79 [RaisesException, DeprecateAs=RangeExpand] void expand([Default=Undefined] o
ptional DOMString unit); | 79 [RaisesException, DeprecateAs=RangeExpand] void expand([Default=Undefined] o
ptional DOMString unit); |
| 80 }; | 80 }; |
| OLD | NEW |