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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 PositionAlgorithm<Strategy> upstream(EditingBoundaryCrossingRule = CannotCro
ssEditingBoundary) const; | 193 PositionAlgorithm<Strategy> upstream(EditingBoundaryCrossingRule = CannotCro
ssEditingBoundary) const; |
194 PositionAlgorithm<Strategy> downstream(EditingBoundaryCrossingRule = CannotC
rossEditingBoundary) const; | 194 PositionAlgorithm<Strategy> downstream(EditingBoundaryCrossingRule = CannotC
rossEditingBoundary) const; |
195 | 195 |
196 bool isCandidate() const; | 196 bool isCandidate() const; |
197 bool inRenderedText() const; | 197 bool inRenderedText() const; |
198 | 198 |
199 InlineBoxPosition computeInlineBoxPosition(EAffinity) const; | 199 InlineBoxPosition computeInlineBoxPosition(EAffinity) const; |
200 InlineBoxPosition computeInlineBoxPosition(EAffinity, TextDirection primaryD
irection) const; | 200 InlineBoxPosition computeInlineBoxPosition(EAffinity, TextDirection primaryD
irection) const; |
201 | 201 |
202 static bool hasRenderedNonAnonymousDescendantsWithHeight(LayoutObject*); | 202 static bool hasRenderedNonAnonymousDescendantsWithHeight(LayoutObject*); |
203 static bool nodeIsUserSelectNone(Node*); | |
204 static bool nodeIsUserSelectAll(const Node*); | 203 static bool nodeIsUserSelectAll(const Node*); |
205 static Node* rootUserSelectAllForNode(Node*); | 204 static Node* rootUserSelectAllForNode(Node*); |
206 static PositionAlgorithm<Strategy> beforeNode(Node* anchorNode); | 205 static PositionAlgorithm<Strategy> beforeNode(Node* anchorNode); |
207 static PositionAlgorithm<Strategy> afterNode(Node* anchorNode); | 206 static PositionAlgorithm<Strategy> afterNode(Node* anchorNode); |
208 static PositionAlgorithm<Strategy> inParentBeforeNode(const Node& anchorNode
); | 207 static PositionAlgorithm<Strategy> inParentBeforeNode(const Node& anchorNode
); |
209 static PositionAlgorithm<Strategy> inParentAfterNode(const Node& anchorNode)
; | 208 static PositionAlgorithm<Strategy> inParentAfterNode(const Node& anchorNode)
; |
210 static int lastOffsetInNode(Node* anchorNode); | 209 static int lastOffsetInNode(Node* anchorNode); |
211 static PositionAlgorithm<Strategy> firstPositionInNode(Node* anchorNode); | 210 static PositionAlgorithm<Strategy> firstPositionInNode(Node* anchorNode); |
212 static PositionAlgorithm<Strategy> lastPositionInNode(Node* anchorNode); | 211 static PositionAlgorithm<Strategy> lastPositionInNode(Node* anchorNode); |
213 static int minOffsetForNode(Node* anchorNode, int offset); | 212 static int minOffsetForNode(Node* anchorNode, int offset); |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 | 446 |
448 } // namespace blink | 447 } // namespace blink |
449 | 448 |
450 #ifndef NDEBUG | 449 #ifndef NDEBUG |
451 // Outside the WebCore namespace for ease of invocation from gdb. | 450 // Outside the WebCore namespace for ease of invocation from gdb. |
452 void showTree(const blink::Position&); | 451 void showTree(const blink::Position&); |
453 void showTree(const blink::Position*); | 452 void showTree(const blink::Position*); |
454 #endif | 453 #endif |
455 | 454 |
456 #endif // Position_h | 455 #endif // Position_h |
OLD | NEW |