| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 const Position startPosition() const { return m_start.toPosition(); } | 101 const Position startPosition() const { return m_start.toPosition(); } |
| 102 const Position endPosition() const { return m_end.toPosition(); } | 102 const Position endPosition() const { return m_end.toPosition(); } |
| 103 void setStart(const Position&, ExceptionState& = ASSERT_NO_EXCEPTION); | 103 void setStart(const Position&, ExceptionState& = ASSERT_NO_EXCEPTION); |
| 104 void setEnd(const Position&, ExceptionState& = ASSERT_NO_EXCEPTION); | 104 void setEnd(const Position&, ExceptionState& = ASSERT_NO_EXCEPTION); |
| 105 | 105 |
| 106 Node* firstNode() const; | 106 Node* firstNode() const; |
| 107 Node* pastLastNode() const; | 107 Node* pastLastNode() const; |
| 108 | 108 |
| 109 ShadowRoot* shadowRoot() const; | 109 ShadowRoot* shadowRoot() const; |
| 110 | 110 |
| 111 enum RangeInFixedPosition { | |
| 112 NotFixedPosition, | |
| 113 PartiallyFixedPosition, | |
| 114 EntirelyFixedPosition | |
| 115 }; | |
| 116 | |
| 117 // Not transform-friendly | 111 // Not transform-friendly |
| 118 void textRects(Vector<IntRect>&, bool useSelectionHeight = false, RangeInFix
edPosition* = 0) const; | 112 void textRects(Vector<IntRect>&, bool useSelectionHeight = false) const; |
| 119 IntRect boundingBox() const; | 113 IntRect boundingBox() const; |
| 120 | 114 |
| 121 // Transform-friendly | 115 // Transform-friendly |
| 122 void textQuads(Vector<FloatQuad>&, bool useSelectionHeight = false, RangeInF
ixedPosition* = 0) const; | 116 void textQuads(Vector<FloatQuad>&, bool useSelectionHeight = false) const; |
| 123 void getBorderAndTextQuads(Vector<FloatQuad>&) const; | 117 void getBorderAndTextQuads(Vector<FloatQuad>&) const; |
| 124 FloatRect boundingRect() const; | 118 FloatRect boundingRect() const; |
| 125 | 119 |
| 126 void nodeChildrenChanged(ContainerNode*); | 120 void nodeChildrenChanged(ContainerNode*); |
| 127 void nodeChildrenWillBeRemoved(ContainerNode&); | 121 void nodeChildrenWillBeRemoved(ContainerNode&); |
| 128 void nodeWillBeRemoved(Node&); | 122 void nodeWillBeRemoved(Node&); |
| 129 | 123 |
| 130 void didInsertText(Node*, unsigned offset, unsigned length); | 124 void didInsertText(Node*, unsigned offset, unsigned length); |
| 131 void didRemoveText(Node*, unsigned offset, unsigned length); | 125 void didRemoveText(Node*, unsigned offset, unsigned length); |
| 132 void didMergeTextNodes(const NodeWithIndex& oldNode, unsigned offset); | 126 void didMergeTextNodes(const NodeWithIndex& oldNode, unsigned offset); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 bool areRangesEqual(const Range*, const Range*); | 168 bool areRangesEqual(const Range*, const Range*); |
| 175 | 169 |
| 176 } // namespace blink | 170 } // namespace blink |
| 177 | 171 |
| 178 #ifndef NDEBUG | 172 #ifndef NDEBUG |
| 179 // Outside the WebCore namespace for ease of invocation from gdb. | 173 // Outside the WebCore namespace for ease of invocation from gdb. |
| 180 void showTree(const blink::Range*); | 174 void showTree(const blink::Range*); |
| 181 #endif | 175 #endif |
| 182 | 176 |
| 183 #endif // Range_h | 177 #endif // Range_h |
| OLD | NEW |