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

Side by Side Diff: third_party/WebKit/Source/core/editing/Position.h

Issue 2291423002: Remove debugPosition() functions. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 static PositionTemplate<Strategy> afterNode(Node* anchorNode); 166 static PositionTemplate<Strategy> afterNode(Node* anchorNode);
167 static PositionTemplate<Strategy> inParentBeforeNode(const Node& anchorNode) ; 167 static PositionTemplate<Strategy> inParentBeforeNode(const Node& anchorNode) ;
168 static PositionTemplate<Strategy> inParentAfterNode(const Node& anchorNode); 168 static PositionTemplate<Strategy> inParentAfterNode(const Node& anchorNode);
169 static int lastOffsetInNode(Node* anchorNode); 169 static int lastOffsetInNode(Node* anchorNode);
170 static PositionTemplate<Strategy> firstPositionInNode(Node* anchorNode); 170 static PositionTemplate<Strategy> firstPositionInNode(Node* anchorNode);
171 static PositionTemplate<Strategy> lastPositionInNode(Node* anchorNode); 171 static PositionTemplate<Strategy> lastPositionInNode(Node* anchorNode);
172 static int minOffsetForNode(Node* anchorNode, int offset); 172 static int minOffsetForNode(Node* anchorNode, int offset);
173 static PositionTemplate<Strategy> firstPositionInOrBeforeNode(Node* anchorNo de); 173 static PositionTemplate<Strategy> firstPositionInOrBeforeNode(Node* anchorNo de);
174 static PositionTemplate<Strategy> lastPositionInOrAfterNode(Node* anchorNode ); 174 static PositionTemplate<Strategy> lastPositionInOrAfterNode(Node* anchorNode );
175 175
176 void debugPosition(const char* msg = "") const;
177
178 #ifndef NDEBUG 176 #ifndef NDEBUG
179 String toAnchorTypeAndOffsetString() const; 177 String toAnchorTypeAndOffsetString() const;
180 void showTreeForThis() const; 178 void showTreeForThis() const;
181 void showTreeForThisInFlatTree() const; 179 void showTreeForThisInFlatTree() const;
182 #endif 180 #endif
183 181
184 DEFINE_INLINE_TRACE() 182 DEFINE_INLINE_TRACE()
185 { 183 {
186 visitor->trace(m_anchorNode); 184 visitor->trace(m_anchorNode);
187 } 185 }
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 254
257 } // namespace blink 255 } // namespace blink
258 256
259 #ifndef NDEBUG 257 #ifndef NDEBUG
260 // Outside the WebCore namespace for ease of invocation from gdb. 258 // Outside the WebCore namespace for ease of invocation from gdb.
261 void showTree(const blink::Position&); 259 void showTree(const blink::Position&);
262 void showTree(const blink::Position*); 260 void showTree(const blink::Position*);
263 #endif 261 #endif
264 262
265 #endif // Position_h 263 #endif // Position_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/Position.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698