Chromium Code Reviews| 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 IntRect computeBoundingBox(const EphemeralRange&) const; | |
|
yosin_UTC9
2017/04/07 04:48:10
No need to introduce |computeBondingBox()| in this
Hwanseung Lee
2017/04/07 17:55:53
Done.
| |
| 145 | 146 |
| 146 // Transform-friendly | 147 // Transform-friendly |
| 147 void textQuads(Vector<FloatQuad>&, bool useSelectionHeight = false) const; | 148 void textQuads(Vector<FloatQuad>&, bool useSelectionHeight = false) const; |
| 148 void getBorderAndTextQuads(Vector<FloatQuad>&) const; | 149 void getBorderAndTextQuads(Vector<FloatQuad>&) const; |
| 149 FloatRect boundingRect() const; | 150 FloatRect boundingRect() const; |
| 150 | 151 |
| 151 void nodeChildrenWillBeRemoved(ContainerNode&); | 152 void nodeChildrenWillBeRemoved(ContainerNode&); |
| 152 void nodeWillBeRemoved(Node&); | 153 void nodeWillBeRemoved(Node&); |
| 153 | 154 |
| 154 void didInsertText(Node*, unsigned offset, unsigned length); | 155 void didInsertText(Node*, unsigned offset, unsigned length); |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 221 using RangeVector = HeapVector<Member<Range>>; | 222 using RangeVector = HeapVector<Member<Range>>; |
| 222 | 223 |
| 223 } // namespace blink | 224 } // namespace blink |
| 224 | 225 |
| 225 #ifndef NDEBUG | 226 #ifndef NDEBUG |
| 226 // Outside the WebCore namespace for ease of invocation from gdb. | 227 // Outside the WebCore namespace for ease of invocation from gdb. |
| 227 void showTree(const blink::Range*); | 228 void showTree(const blink::Range*); |
| 228 #endif | 229 #endif |
| 229 | 230 |
| 230 #endif // Range_h | 231 #endif // Range_h |
| OLD | NEW |