| 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 reserv
ed. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 void didRemoveText(Node*, unsigned offset, unsigned length); | 144 void didRemoveText(Node*, unsigned offset, unsigned length); |
| 145 void didMergeTextNodes(const NodeWithIndex& oldNode, unsigned offset); | 145 void didMergeTextNodes(const NodeWithIndex& oldNode, unsigned offset); |
| 146 void didSplitTextNode(Text& oldNode); | 146 void didSplitTextNode(Text& oldNode); |
| 147 void updateOwnerDocumentIfNeeded(); | 147 void updateOwnerDocumentIfNeeded(); |
| 148 | 148 |
| 149 // Expand range to a unit (word or sentence or block or document) boundary. | 149 // Expand range to a unit (word or sentence or block or document) boundary. |
| 150 // Please refer to https://bugs.webkit.org/show_bug.cgi?id=27632 comment #5 | 150 // Please refer to https://bugs.webkit.org/show_bug.cgi?id=27632 comment #5 |
| 151 // for details. | 151 // for details. |
| 152 void expand(const String&, ExceptionState&); | 152 void expand(const String&, ExceptionState&); |
| 153 | 153 |
| 154 PassRefPtrWillBeRawPtr<ClientRectList> getClientRects() const; | 154 ClientRectList* getClientRects() const; |
| 155 PassRefPtrWillBeRawPtr<ClientRect> getBoundingClientRect() const; | 155 ClientRect* getBoundingClientRect() const; |
| 156 | 156 |
| 157 #ifndef NDEBUG | 157 #ifndef NDEBUG |
| 158 void formatForDebugger(char* buffer, unsigned length) const; | 158 void formatForDebugger(char* buffer, unsigned length) const; |
| 159 #endif | 159 #endif |
| 160 | 160 |
| 161 DECLARE_TRACE(); | 161 DECLARE_TRACE(); |
| 162 | 162 |
| 163 private: | 163 private: |
| 164 explicit Range(Document&); | 164 explicit Range(Document&); |
| 165 Range(Document&, Node* startContainer, int startOffset, Node* endContainer,
int endOffset); | 165 Range(Document&, Node* startContainer, int startOffset, Node* endContainer,
int endOffset); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 187 CORE_EXPORT bool areRangesEqual(const Range*, const Range*); | 187 CORE_EXPORT bool areRangesEqual(const Range*, const Range*); |
| 188 | 188 |
| 189 } // namespace blink | 189 } // namespace blink |
| 190 | 190 |
| 191 #ifndef NDEBUG | 191 #ifndef NDEBUG |
| 192 // Outside the WebCore namespace for ease of invocation from gdb. | 192 // Outside the WebCore namespace for ease of invocation from gdb. |
| 193 void showTree(const blink::Range*); | 193 void showTree(const blink::Range*); |
| 194 #endif | 194 #endif |
| 195 | 195 |
| 196 #endif // Range_h | 196 #endif // Range_h |
| OLD | NEW |