| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) 1999 Lars Knoll (knoll@kde.org) | 2 * (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2000 Gunnstein Lye (gunnstein@netcom.no) | 3 * (C) 2000 Gunnstein Lye (gunnstein@netcom.no) |
| 4 * (C) 2000 Frederik Holljen (frederik.holljen@hig.no) | 4 * (C) 2000 Frederik Holljen (frederik.holljen@hig.no) |
| 5 * (C) 2001 Peter Kelly (pmk@post.com) | 5 * (C) 2001 Peter Kelly (pmk@post.com) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights |
| 7 * reserved. | 7 * reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 Range(Document&, | 175 Range(Document&, |
| 176 Node* startContainer, | 176 Node* startContainer, |
| 177 int startOffset, | 177 int startOffset, |
| 178 Node* endContainer, | 178 Node* endContainer, |
| 179 int endOffset); | 179 int endOffset); |
| 180 | 180 |
| 181 void setDocument(Document&); | 181 void setDocument(Document&); |
| 182 | 182 |
| 183 void checkNodeBA(Node*, ExceptionState&) const; | 183 void checkNodeBA(Node*, ExceptionState&) const; |
| 184 void checkExtractPrecondition(ExceptionState&); | 184 void checkExtractPrecondition(ExceptionState&); |
| 185 bool hasSameRoot(const Node&) const; |
| 185 | 186 |
| 186 enum ActionType { DELETE_CONTENTS, EXTRACT_CONTENTS, CLONE_CONTENTS }; | 187 enum ActionType { DELETE_CONTENTS, EXTRACT_CONTENTS, CLONE_CONTENTS }; |
| 187 DocumentFragment* processContents(ActionType, ExceptionState&); | 188 DocumentFragment* processContents(ActionType, ExceptionState&); |
| 188 static Node* processContentsBetweenOffsets(ActionType, | 189 static Node* processContentsBetweenOffsets(ActionType, |
| 189 DocumentFragment*, | 190 DocumentFragment*, |
| 190 Node*, | 191 Node*, |
| 191 unsigned startOffset, | 192 unsigned startOffset, |
| 192 unsigned endOffset, | 193 unsigned endOffset, |
| 193 ExceptionState&); | 194 ExceptionState&); |
| 194 static void processNodes(ActionType, | 195 static void processNodes(ActionType, |
| (...skipping 22 matching lines...) Expand all Loading... |
| 217 using RangeVector = HeapVector<Member<Range>>; | 218 using RangeVector = HeapVector<Member<Range>>; |
| 218 | 219 |
| 219 } // namespace blink | 220 } // namespace blink |
| 220 | 221 |
| 221 #ifndef NDEBUG | 222 #ifndef NDEBUG |
| 222 // Outside the WebCore namespace for ease of invocation from gdb. | 223 // Outside the WebCore namespace for ease of invocation from gdb. |
| 223 void showTree(const blink::Range*); | 224 void showTree(const blink::Range*); |
| 224 #endif | 225 #endif |
| 225 | 226 |
| 226 #endif // Range_h | 227 #endif // Range_h |
| OLD | NEW |