| 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 // These return useful visually equivalent positions. | 188 // These return useful visually equivalent positions. |
| 189 PositionAlgorithm<Strategy> upstream(EditingBoundaryCrossingRule = CannotCro
ssEditingBoundary) const; | 189 PositionAlgorithm<Strategy> upstream(EditingBoundaryCrossingRule = CannotCro
ssEditingBoundary) const; |
| 190 PositionAlgorithm<Strategy> downstream(EditingBoundaryCrossingRule = CannotC
rossEditingBoundary) const; | 190 PositionAlgorithm<Strategy> downstream(EditingBoundaryCrossingRule = CannotC
rossEditingBoundary) const; |
| 191 | 191 |
| 192 bool isCandidate() const; | 192 bool isCandidate() const; |
| 193 bool inRenderedText() const; | 193 bool inRenderedText() const; |
| 194 | 194 |
| 195 InlineBoxPosition computeInlineBoxPosition(TextAffinity) const; | 195 InlineBoxPosition computeInlineBoxPosition(TextAffinity) const; |
| 196 InlineBoxPosition computeInlineBoxPosition(TextAffinity, TextDirection prima
ryDirection) const; | 196 InlineBoxPosition computeInlineBoxPosition(TextAffinity, TextDirection prima
ryDirection) const; |
| 197 | 197 |
| 198 static bool nodeIsUserSelectAll(const Node*); | |
| 199 static Node* rootUserSelectAllForNode(Node*); | 198 static Node* rootUserSelectAllForNode(Node*); |
| 200 static PositionAlgorithm<Strategy> beforeNode(Node* anchorNode); | 199 static PositionAlgorithm<Strategy> beforeNode(Node* anchorNode); |
| 201 static PositionAlgorithm<Strategy> afterNode(Node* anchorNode); | 200 static PositionAlgorithm<Strategy> afterNode(Node* anchorNode); |
| 202 static PositionAlgorithm<Strategy> inParentBeforeNode(const Node& anchorNode
); | 201 static PositionAlgorithm<Strategy> inParentBeforeNode(const Node& anchorNode
); |
| 203 static PositionAlgorithm<Strategy> inParentAfterNode(const Node& anchorNode)
; | 202 static PositionAlgorithm<Strategy> inParentAfterNode(const Node& anchorNode)
; |
| 204 static int lastOffsetInNode(Node* anchorNode); | 203 static int lastOffsetInNode(Node* anchorNode); |
| 205 static PositionAlgorithm<Strategy> firstPositionInNode(Node* anchorNode); | 204 static PositionAlgorithm<Strategy> firstPositionInNode(Node* anchorNode); |
| 206 static PositionAlgorithm<Strategy> lastPositionInNode(Node* anchorNode); | 205 static PositionAlgorithm<Strategy> lastPositionInNode(Node* anchorNode); |
| 207 static int minOffsetForNode(Node* anchorNode, int offset); | 206 static int minOffsetForNode(Node* anchorNode, int offset); |
| 208 static bool offsetIsBeforeLastNodeOffset(int offset, Node* anchorNode); | 207 static bool offsetIsBeforeLastNodeOffset(int offset, Node* anchorNode); |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 | 449 |
| 451 } // namespace blink | 450 } // namespace blink |
| 452 | 451 |
| 453 #ifndef NDEBUG | 452 #ifndef NDEBUG |
| 454 // Outside the WebCore namespace for ease of invocation from gdb. | 453 // Outside the WebCore namespace for ease of invocation from gdb. |
| 455 void showTree(const blink::Position&); | 454 void showTree(const blink::Position&); |
| 456 void showTree(const blink::Position*); | 455 void showTree(const blink::Position*); |
| 457 #endif | 456 #endif |
| 458 | 457 |
| 459 #endif // Position_h | 458 #endif // Position_h |
| OLD | NEW |