| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 void dispose(); | 58 void dispose(); |
| 59 | 59 |
| 60 Document& ownerDocument() const { DCHECK(m_ownerDocument); return *m_ownerDo
cument.get(); } | 60 Document& ownerDocument() const { DCHECK(m_ownerDocument); return *m_ownerDo
cument.get(); } |
| 61 Node* startContainer() const { return m_start.container(); } | 61 Node* startContainer() const { return m_start.container(); } |
| 62 int startOffset() const { return m_start.offset(); } | 62 int startOffset() const { return m_start.offset(); } |
| 63 Node* endContainer() const { return m_end.container(); } | 63 Node* endContainer() const { return m_end.container(); } |
| 64 int endOffset() const { return m_end.offset(); } | 64 int endOffset() const { return m_end.offset(); } |
| 65 | 65 |
| 66 bool collapsed() const { return m_start == m_end; } | 66 bool collapsed() const { return m_start == m_end; } |
| 67 bool inShadowIncludingDocument() const; | 67 bool isConnected() const; |
| 68 | 68 |
| 69 Node* commonAncestorContainer() const; | 69 Node* commonAncestorContainer() const; |
| 70 static Node* commonAncestorContainer(const Node* containerA, const Node* con
tainerB); | 70 static Node* commonAncestorContainer(const Node* containerA, const Node* con
tainerB); |
| 71 void setStart(Node* container, int offset, ExceptionState& = ASSERT_NO_EXCEP
TION); | 71 void setStart(Node* container, int offset, ExceptionState& = ASSERT_NO_EXCEP
TION); |
| 72 void setEnd(Node* container, int offset, ExceptionState& = ASSERT_NO_EXCEPTI
ON); | 72 void setEnd(Node* container, int offset, ExceptionState& = ASSERT_NO_EXCEPTI
ON); |
| 73 void collapse(bool toStart); | 73 void collapse(bool toStart); |
| 74 bool isNodeFullyContained(Node&) const; | 74 bool isNodeFullyContained(Node&) const; |
| 75 bool isPointInRange(Node* refNode, int offset, ExceptionState&) const; | 75 bool isPointInRange(Node* refNode, int offset, ExceptionState&) const; |
| 76 short comparePoint(Node* refNode, int offset, ExceptionState&) const; | 76 short comparePoint(Node* refNode, int offset, ExceptionState&) const; |
| 77 enum CompareResults { NODE_BEFORE, NODE_AFTER, NODE_BEFORE_AND_AFTER, NODE_I
NSIDE }; | 77 enum CompareResults { NODE_BEFORE, NODE_AFTER, NODE_BEFORE_AND_AFTER, NODE_I
NSIDE }; |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 using RangeVector = HeapVector<Member<Range>>; | 171 using RangeVector = HeapVector<Member<Range>>; |
| 172 | 172 |
| 173 } // namespace blink | 173 } // namespace blink |
| 174 | 174 |
| 175 #ifndef NDEBUG | 175 #ifndef NDEBUG |
| 176 // Outside the WebCore namespace for ease of invocation from gdb. | 176 // Outside the WebCore namespace for ease of invocation from gdb. |
| 177 void showTree(const blink::Range*); | 177 void showTree(const blink::Range*); |
| 178 #endif | 178 #endif |
| 179 | 179 |
| 180 #endif // Range_h | 180 #endif // Range_h |
| OLD | NEW |