Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(325)

Side by Side Diff: Source/core/dom/Position.h

Issue 237583016: Remove some dead code in dom/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/DocumentMarkerController.cpp ('k') | Source/core/dom/Position.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 void formatForDebugger(char* buffer, unsigned length) const; 201 void formatForDebugger(char* buffer, unsigned length) const;
202 void showAnchorTypeAndOffset() const; 202 void showAnchorTypeAndOffset() const;
203 void showTreeForThis() const; 203 void showTreeForThis() const;
204 #endif 204 #endif
205 205
206 private: 206 private:
207 int offsetForPositionAfterAnchor() const; 207 int offsetForPositionAfterAnchor() const;
208 208
209 int renderedOffset() const; 209 int renderedOffset() const;
210 210
211
212 Position previousCharacterPosition(EAffinity) const; 211 Position previousCharacterPosition(EAffinity) const;
213 Position nextCharacterPosition(EAffinity) const;
214 212
215 static AnchorType anchorTypeForLegacyEditingPosition(Node* anchorNode, int o ffset); 213 static AnchorType anchorTypeForLegacyEditingPosition(Node* anchorNode, int o ffset);
216 214
217 RefPtr<Node> m_anchorNode; 215 RefPtr<Node> m_anchorNode;
218 // m_offset can be the offset inside m_anchorNode, or if editingIgnoresConte nt(m_anchorNode) 216 // m_offset can be the offset inside m_anchorNode, or if editingIgnoresConte nt(m_anchorNode)
219 // returns true, then other places in editing will treat m_offset == 0 as "b efore the anchor" 217 // returns true, then other places in editing will treat m_offset == 0 as "b efore the anchor"
220 // and m_offset > 0 as "after the anchor node". See parentAnchoredEquivalen t for more info. 218 // and m_offset > 0 as "after the anchor node". See parentAnchoredEquivalen t for more info.
221 int m_offset; 219 int m_offset;
222 unsigned m_anchorType : 3; 220 unsigned m_anchorType : 3;
223 bool m_isLegacyEditingPosition : 1; 221 bool m_isLegacyEditingPosition : 1;
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 338
341 } // namespace WebCore 339 } // namespace WebCore
342 340
343 #ifndef NDEBUG 341 #ifndef NDEBUG
344 // Outside the WebCore namespace for ease of invocation from gdb. 342 // Outside the WebCore namespace for ease of invocation from gdb.
345 void showTree(const WebCore::Position&); 343 void showTree(const WebCore::Position&);
346 void showTree(const WebCore::Position*); 344 void showTree(const WebCore::Position*);
347 #endif 345 #endif
348 346
349 #endif // Position_h 347 #endif // Position_h
OLDNEW
« no previous file with comments | « Source/core/dom/DocumentMarkerController.cpp ('k') | Source/core/dom/Position.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698