| 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 static ContainerNode* findParent(const Node*); | 191 static ContainerNode* findParent(const Node*); |
| 192 | 192 |
| 193 void debugPosition(const char* msg = "") const; | 193 void debugPosition(const char* msg = "") const; |
| 194 | 194 |
| 195 #ifndef NDEBUG | 195 #ifndef NDEBUG |
| 196 void formatForDebugger(char* buffer, unsigned length) const; | 196 void formatForDebugger(char* buffer, unsigned length) const; |
| 197 void showAnchorTypeAndOffset() const; | 197 void showAnchorTypeAndOffset() const; |
| 198 void showTreeForThis() const; | 198 void showTreeForThis() const; |
| 199 #endif | 199 #endif |
| 200 | 200 |
| 201 void trace(Visitor*); | |
| 202 | |
| 203 private: | 201 private: |
| 204 int offsetForPositionAfterAnchor() const; | 202 int offsetForPositionAfterAnchor() const; |
| 205 | 203 |
| 206 int renderedOffset() const; | 204 int renderedOffset() const; |
| 207 | 205 |
| 208 static AnchorType anchorTypeForLegacyEditingPosition(Node* anchorNode, int o
ffset); | 206 static AnchorType anchorTypeForLegacyEditingPosition(Node* anchorNode, int o
ffset); |
| 209 | 207 |
| 210 RefPtr<Node> m_anchorNode; | 208 RefPtr<Node> m_anchorNode; |
| 211 // m_offset can be the offset inside m_anchorNode, or if editingIgnoresConte
nt(m_anchorNode) | 209 // m_offset can be the offset inside m_anchorNode, or if editingIgnoresConte
nt(m_anchorNode) |
| 212 // returns true, then other places in editing will treat m_offset == 0 as "b
efore the anchor" | 210 // returns true, then other places in editing will treat m_offset == 0 as "b
efore the anchor" |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 | 310 |
| 313 } // namespace blink | 311 } // namespace blink |
| 314 | 312 |
| 315 #ifndef NDEBUG | 313 #ifndef NDEBUG |
| 316 // Outside the WebCore namespace for ease of invocation from gdb. | 314 // Outside the WebCore namespace for ease of invocation from gdb. |
| 317 void showTree(const blink::Position&); | 315 void showTree(const blink::Position&); |
| 318 void showTree(const blink::Position*); | 316 void showTree(const blink::Position*); |
| 319 #endif | 317 #endif |
| 320 | 318 |
| 321 #endif // Position_h | 319 #endif // Position_h |
| OLD | NEW |