| 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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; | 176 void debugPosition(const char* msg = "") const; |
| 177 | 177 |
| 178 #ifndef NDEBUG | 178 #ifndef NDEBUG |
| 179 void showAnchorTypeAndOffset() const; | 179 String toAnchorTypeAndOffsetString() const; |
| 180 void showTreeForThis() const; | 180 void showTreeForThis() const; |
| 181 void showTreeForThisInFlatTree() const; | 181 void showTreeForThisInFlatTree() const; |
| 182 #endif | 182 #endif |
| 183 | 183 |
| 184 DEFINE_INLINE_TRACE() | 184 DEFINE_INLINE_TRACE() |
| 185 { | 185 { |
| 186 visitor->trace(m_anchorNode); | 186 visitor->trace(m_anchorNode); |
| 187 } | 187 } |
| 188 | 188 |
| 189 private: | 189 private: |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 | 256 |
| 257 } // namespace blink | 257 } // namespace blink |
| 258 | 258 |
| 259 #ifndef NDEBUG | 259 #ifndef NDEBUG |
| 260 // Outside the WebCore namespace for ease of invocation from gdb. | 260 // Outside the WebCore namespace for ease of invocation from gdb. |
| 261 void showTree(const blink::Position&); | 261 void showTree(const blink::Position&); |
| 262 void showTree(const blink::Position*); | 262 void showTree(const blink::Position*); |
| 263 #endif | 263 #endif |
| 264 | 264 |
| 265 #endif // Position_h | 265 #endif // Position_h |
| OLD | NEW |