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 22 matching lines...) Expand all Loading... |
33 #include "wtf/Assertions.h" | 33 #include "wtf/Assertions.h" |
34 #include "wtf/PassRefPtr.h" | 34 #include "wtf/PassRefPtr.h" |
35 #include "wtf/RefPtr.h" | 35 #include "wtf/RefPtr.h" |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 class CSSComputedStyleDeclaration; | 39 class CSSComputedStyleDeclaration; |
40 class Element; | 40 class Element; |
41 class InlineBox; | 41 class InlineBox; |
42 class Node; | 42 class Node; |
43 class RenderObject; | 43 class LayoutObject; |
44 class Text; | 44 class Text; |
45 class TreeScope; | 45 class TreeScope; |
46 | 46 |
47 enum PositionMoveType { | 47 enum PositionMoveType { |
48 CodePoint, // Move by a single code point. | 48 CodePoint, // Move by a single code point. |
49 Character, // Move to the next Unicode character break. | 49 Character, // Move to the next Unicode character break. |
50 BackwardDeletion // Subject to platform conventions. | 50 BackwardDeletion // Subject to platform conventions. |
51 }; | 51 }; |
52 | 52 |
53 class Position { | 53 class Position { |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 bool isCandidate() const; | 180 bool isCandidate() const; |
181 bool inRenderedText() const; | 181 bool inRenderedText() const; |
182 bool isRenderedCharacter() const; | 182 bool isRenderedCharacter() const; |
183 bool rendersInDifferentPosition(const Position&) const; | 183 bool rendersInDifferentPosition(const Position&) const; |
184 | 184 |
185 void getInlineBoxAndOffset(EAffinity, InlineBox*&, int& caretOffset) const; | 185 void getInlineBoxAndOffset(EAffinity, InlineBox*&, int& caretOffset) const; |
186 void getInlineBoxAndOffset(EAffinity, TextDirection primaryDirection, Inline
Box*&, int& caretOffset) const; | 186 void getInlineBoxAndOffset(EAffinity, TextDirection primaryDirection, Inline
Box*&, int& caretOffset) const; |
187 | 187 |
188 TextDirection primaryDirection() const; | 188 TextDirection primaryDirection() const; |
189 | 189 |
190 static bool hasRenderedNonAnonymousDescendantsWithHeight(RenderObject*); | 190 static bool hasRenderedNonAnonymousDescendantsWithHeight(LayoutObject*); |
191 static bool nodeIsUserSelectNone(Node*); | 191 static bool nodeIsUserSelectNone(Node*); |
192 static bool nodeIsUserSelectAll(const Node*); | 192 static bool nodeIsUserSelectAll(const Node*); |
193 static Node* rootUserSelectAllForNode(Node*); | 193 static Node* rootUserSelectAllForNode(Node*); |
194 | 194 |
195 static ContainerNode* findParent(const Node*); | 195 static ContainerNode* findParent(const Node*); |
196 | 196 |
197 void debugPosition(const char* msg = "") const; | 197 void debugPosition(const char* msg = "") const; |
198 | 198 |
199 #ifndef NDEBUG | 199 #ifndef NDEBUG |
200 void formatForDebugger(char* buffer, unsigned length) const; | 200 void formatForDebugger(char* buffer, unsigned length) const; |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 | 316 |
317 } // namespace blink | 317 } // namespace blink |
318 | 318 |
319 #ifndef NDEBUG | 319 #ifndef NDEBUG |
320 // Outside the WebCore namespace for ease of invocation from gdb. | 320 // Outside the WebCore namespace for ease of invocation from gdb. |
321 void showTree(const blink::Position&); | 321 void showTree(const blink::Position&); |
322 void showTree(const blink::Position*); | 322 void showTree(const blink::Position*); |
323 #endif | 323 #endif |
324 | 324 |
325 #endif // Position_h | 325 #endif // Position_h |
OLD | NEW |