| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 static PositionTemplate<Strategy> afterNode(Node* anchorNode); | 166 static PositionTemplate<Strategy> afterNode(Node* anchorNode); |
| 167 static PositionTemplate<Strategy> inParentBeforeNode(const Node& anchorNode)
; | 167 static PositionTemplate<Strategy> inParentBeforeNode(const Node& anchorNode)
; |
| 168 static PositionTemplate<Strategy> inParentAfterNode(const Node& anchorNode); | 168 static PositionTemplate<Strategy> inParentAfterNode(const Node& anchorNode); |
| 169 static int lastOffsetInNode(Node* anchorNode); | 169 static int lastOffsetInNode(Node* anchorNode); |
| 170 static PositionTemplate<Strategy> firstPositionInNode(Node* anchorNode); | 170 static PositionTemplate<Strategy> firstPositionInNode(Node* anchorNode); |
| 171 static PositionTemplate<Strategy> lastPositionInNode(Node* anchorNode); | 171 static PositionTemplate<Strategy> lastPositionInNode(Node* anchorNode); |
| 172 static int minOffsetForNode(Node* anchorNode, int offset); | 172 static int minOffsetForNode(Node* anchorNode, int offset); |
| 173 static PositionTemplate<Strategy> firstPositionInOrBeforeNode(Node* anchorNo
de); | 173 static PositionTemplate<Strategy> firstPositionInOrBeforeNode(Node* anchorNo
de); |
| 174 static PositionTemplate<Strategy> lastPositionInOrAfterNode(Node* anchorNode
); | 174 static PositionTemplate<Strategy> lastPositionInOrAfterNode(Node* anchorNode
); |
| 175 | 175 |
| 176 void debugPosition(const char* msg = "") const; | |
| 177 | |
| 178 #ifndef NDEBUG | 176 #ifndef NDEBUG |
| 179 String toAnchorTypeAndOffsetString() const; | 177 String toAnchorTypeAndOffsetString() const; |
| 180 void showTreeForThis() const; | 178 void showTreeForThis() const; |
| 181 void showTreeForThisInFlatTree() const; | 179 void showTreeForThisInFlatTree() const; |
| 182 #endif | 180 #endif |
| 183 | 181 |
| 184 DEFINE_INLINE_TRACE() | 182 DEFINE_INLINE_TRACE() |
| 185 { | 183 { |
| 186 visitor->trace(m_anchorNode); | 184 visitor->trace(m_anchorNode); |
| 187 } | 185 } |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 | 254 |
| 257 } // namespace blink | 255 } // namespace blink |
| 258 | 256 |
| 259 #ifndef NDEBUG | 257 #ifndef NDEBUG |
| 260 // Outside the WebCore namespace for ease of invocation from gdb. | 258 // Outside the WebCore namespace for ease of invocation from gdb. |
| 261 void showTree(const blink::Position&); | 259 void showTree(const blink::Position&); |
| 262 void showTree(const blink::Position*); | 260 void showTree(const blink::Position*); |
| 263 #endif | 261 #endif |
| 264 | 262 |
| 265 #endif // Position_h | 263 #endif // Position_h |
| OLD | NEW |