| 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 12 matching lines...) Expand all Loading... |
| 23 * | 23 * |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef Range_h | 26 #ifndef Range_h |
| 27 #define Range_h | 27 #define Range_h |
| 28 | 28 |
| 29 #include "bindings/core/v8/ExceptionState.h" | 29 #include "bindings/core/v8/ExceptionState.h" |
| 30 #include "bindings/core/v8/ScriptWrappable.h" | 30 #include "bindings/core/v8/ScriptWrappable.h" |
| 31 #include "core/CoreExport.h" | 31 #include "core/CoreExport.h" |
| 32 #include "core/dom/RangeBoundaryPoint.h" | 32 #include "core/dom/RangeBoundaryPoint.h" |
| 33 #include "core/editing/EphemeralRange.h" |
| 33 #include "platform/geometry/FloatRect.h" | 34 #include "platform/geometry/FloatRect.h" |
| 34 #include "platform/geometry/IntRect.h" | 35 #include "platform/geometry/IntRect.h" |
| 35 #include "platform/heap/Handle.h" | 36 #include "platform/heap/Handle.h" |
| 36 #include "wtf/Forward.h" | 37 #include "wtf/Forward.h" |
| 37 | 38 |
| 38 namespace blink { | 39 namespace blink { |
| 39 | 40 |
| 40 class ClientRect; | 41 class ClientRect; |
| 41 class ClientRectList; | 42 class ClientRectList; |
| 42 class ContainerNode; | 43 class ContainerNode; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 | 134 |
| 134 const Position startPosition() const { return m_start.toPosition(); } | 135 const Position startPosition() const { return m_start.toPosition(); } |
| 135 const Position endPosition() const { return m_end.toPosition(); } | 136 const Position endPosition() const { return m_end.toPosition(); } |
| 136 void setStart(const Position&, ExceptionState& = ASSERT_NO_EXCEPTION); | 137 void setStart(const Position&, ExceptionState& = ASSERT_NO_EXCEPTION); |
| 137 void setEnd(const Position&, ExceptionState& = ASSERT_NO_EXCEPTION); | 138 void setEnd(const Position&, ExceptionState& = ASSERT_NO_EXCEPTION); |
| 138 | 139 |
| 139 Node* firstNode() const; | 140 Node* firstNode() const; |
| 140 Node* pastLastNode() const; | 141 Node* pastLastNode() const; |
| 141 | 142 |
| 142 // Not transform-friendly | 143 // Not transform-friendly |
| 143 void textRects(Vector<IntRect>&, bool useSelectionHeight = false) const; | |
| 144 IntRect boundingBox() const; | 144 IntRect boundingBox() const; |
| 145 | 145 |
| 146 // Transform-friendly | 146 // Transform-friendly |
| 147 void textQuads(Vector<FloatQuad>&, bool useSelectionHeight = false) const; | 147 void textQuads(Vector<FloatQuad>&, bool useSelectionHeight = false) const; |
| 148 void getBorderAndTextQuads(Vector<FloatQuad>&) const; | 148 void getBorderAndTextQuads(Vector<FloatQuad>&) const; |
| 149 FloatRect boundingRect() const; | 149 FloatRect boundingRect() const; |
| 150 | 150 |
| 151 void nodeChildrenWillBeRemoved(ContainerNode&); | 151 void nodeChildrenWillBeRemoved(ContainerNode&); |
| 152 void nodeWillBeRemoved(Node&); | 152 void nodeWillBeRemoved(Node&); |
| 153 | 153 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 using RangeVector = HeapVector<Member<Range>>; | 221 using RangeVector = HeapVector<Member<Range>>; |
| 222 | 222 |
| 223 } // namespace blink | 223 } // namespace blink |
| 224 | 224 |
| 225 #ifndef NDEBUG | 225 #ifndef NDEBUG |
| 226 // Outside the WebCore namespace for ease of invocation from gdb. | 226 // Outside the WebCore namespace for ease of invocation from gdb. |
| 227 void showTree(const blink::Range*); | 227 void showTree(const blink::Range*); |
| 228 #endif | 228 #endif |
| 229 | 229 |
| 230 #endif // Range_h | 230 #endif // Range_h |
| OLD | NEW |