| 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 bool AtStartOfTree() const; | 188 bool AtStartOfTree() const; |
| 189 bool AtEndOfTree() const; | 189 bool AtEndOfTree() const; |
| 190 | 190 |
| 191 static PositionTemplate<Strategy> BeforeNode(const Node& anchor_node); | 191 static PositionTemplate<Strategy> BeforeNode(const Node& anchor_node); |
| 192 static PositionTemplate<Strategy> AfterNode(const Node& anchor_node); | 192 static PositionTemplate<Strategy> AfterNode(const Node& anchor_node); |
| 193 static PositionTemplate<Strategy> InParentBeforeNode(const Node& anchor_node); | 193 static PositionTemplate<Strategy> InParentBeforeNode(const Node& anchor_node); |
| 194 static PositionTemplate<Strategy> InParentAfterNode(const Node& anchor_node); | 194 static PositionTemplate<Strategy> InParentAfterNode(const Node& anchor_node); |
| 195 static int LastOffsetInNode(const Node& anchor_node); | 195 static int LastOffsetInNode(const Node& anchor_node); |
| 196 static PositionTemplate<Strategy> FirstPositionInNode( | 196 static PositionTemplate<Strategy> FirstPositionInNode( |
| 197 const Node& anchor_node); | 197 const Node& anchor_node); |
| 198 static PositionTemplate<Strategy> LastPositionInNode(Node* anchor_node); | 198 static PositionTemplate<Strategy> LastPositionInNode(const Node& anchor_node); |
| 199 static PositionTemplate<Strategy> FirstPositionInOrBeforeNode( | 199 static PositionTemplate<Strategy> FirstPositionInOrBeforeNode( |
| 200 Node* anchor_node); | 200 Node* anchor_node); |
| 201 static PositionTemplate<Strategy> LastPositionInOrAfterNode( | 201 static PositionTemplate<Strategy> LastPositionInOrAfterNode( |
| 202 Node* anchor_node); | 202 Node* anchor_node); |
| 203 | 203 |
| 204 String ToAnchorTypeAndOffsetString() const; | 204 String ToAnchorTypeAndOffsetString() const; |
| 205 #ifndef NDEBUG | 205 #ifndef NDEBUG |
| 206 void ShowTreeForThis() const; | 206 void ShowTreeForThis() const; |
| 207 void ShowTreeForThisInFlatTree() const; | 207 void ShowTreeForThisInFlatTree() const; |
| 208 #endif | 208 #endif |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 | 284 |
| 285 } // namespace blink | 285 } // namespace blink |
| 286 | 286 |
| 287 #ifndef NDEBUG | 287 #ifndef NDEBUG |
| 288 // Outside the WebCore namespace for ease of invocation from gdb. | 288 // Outside the WebCore namespace for ease of invocation from gdb. |
| 289 void showTree(const blink::Position&); | 289 void showTree(const blink::Position&); |
| 290 void showTree(const blink::Position*); | 290 void showTree(const blink::Position*); |
| 291 #endif | 291 #endif |
| 292 | 292 |
| 293 #endif // Position_h | 293 #endif // Position_h |
| OLD | NEW |