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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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; |
201 void showAnchorTypeAndOffset() const; | 201 void showAnchorTypeAndOffset() const; |
202 void showTreeForThis() const; | 202 void showTreeForThis() const; |
203 #endif | 203 #endif |
204 | 204 |
205 void trace(Visitor*); | 205 DECLARE_TRACE(); |
206 | 206 |
207 private: | 207 private: |
208 int offsetForPositionAfterAnchor() const; | 208 int offsetForPositionAfterAnchor() const; |
209 | 209 |
210 int renderedOffset() const; | 210 int renderedOffset() const; |
211 | 211 |
212 static AnchorType anchorTypeForLegacyEditingPosition(Node* anchorNode, int o
ffset); | 212 static AnchorType anchorTypeForLegacyEditingPosition(Node* anchorNode, int o
ffset); |
213 | 213 |
214 RefPtrWillBeMember<Node> m_anchorNode; | 214 RefPtrWillBeMember<Node> m_anchorNode; |
215 // m_offset can be the offset inside m_anchorNode, or if editingIgnoresConte
nt(m_anchorNode) | 215 // m_offset can be the offset inside m_anchorNode, or if editingIgnoresConte
nt(m_anchorNode) |
(...skipping 100 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 |