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

Side by Side Diff: third_party/WebKit/Source/core/editing/VisibleSelection.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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2004 Apple Computer, 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 visitor->trace(m_base); 119 visitor->trace(m_base);
120 visitor->trace(m_extent); 120 visitor->trace(m_extent);
121 visitor->trace(m_start); 121 visitor->trace(m_start);
122 visitor->trace(m_end); 122 visitor->trace(m_end);
123 } 123 }
124 124
125 void updateIfNeeded(); 125 void updateIfNeeded();
126 void validatePositionsIfNeeded(); 126 void validatePositionsIfNeeded();
127 127
128 #ifndef NDEBUG 128 #ifndef NDEBUG
129 void debugPosition(const char* message) const;
130 void showTreeForThis() const; 129 void showTreeForThis() const;
131 #endif 130 #endif
132 static void PrintTo(const VisibleSelectionTemplate&, std::ostream*); 131 static void PrintTo(const VisibleSelectionTemplate&, std::ostream*);
133 132
134 private: 133 private:
135 friend class SelectionAdjuster; 134 friend class SelectionAdjuster;
136 135
137 void validate(TextGranularity = CharacterGranularity); 136 void validate(TextGranularity = CharacterGranularity);
138 137
139 // Support methods for validate() 138 // Support methods for validate()
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 192
194 #ifndef NDEBUG 193 #ifndef NDEBUG
195 // Outside the WebCore namespace for ease of invocation from gdb. 194 // Outside the WebCore namespace for ease of invocation from gdb.
196 void showTree(const blink::VisibleSelection&); 195 void showTree(const blink::VisibleSelection&);
197 void showTree(const blink::VisibleSelection*); 196 void showTree(const blink::VisibleSelection*);
198 void showTree(const blink::VisibleSelectionInFlatTree&); 197 void showTree(const blink::VisibleSelectionInFlatTree&);
199 void showTree(const blink::VisibleSelectionInFlatTree*); 198 void showTree(const blink::VisibleSelectionInFlatTree*);
200 #endif 199 #endif
201 200
202 #endif // VisibleSelection_h 201 #endif // VisibleSelection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698