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

Side by Side Diff: third_party/WebKit/Source/core/editing/VisiblePosition.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, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 static VisiblePositionTemplate<Strategy> inParentAfterNode(const Node&); 97 static VisiblePositionTemplate<Strategy> inParentAfterNode(const Node&);
98 static VisiblePositionTemplate<Strategy> inParentBeforeNode(const Node&); 98 static VisiblePositionTemplate<Strategy> inParentBeforeNode(const Node&);
99 static VisiblePositionTemplate<Strategy> lastPositionInNode(Node*); 99 static VisiblePositionTemplate<Strategy> lastPositionInNode(Node*);
100 100
101 DEFINE_INLINE_TRACE() 101 DEFINE_INLINE_TRACE()
102 { 102 {
103 visitor->trace(m_positionWithAffinity); 103 visitor->trace(m_positionWithAffinity);
104 } 104 }
105 105
106 #ifndef NDEBUG 106 #ifndef NDEBUG
107 void debugPosition(const char* msg = "") const;
108 void showTreeForThis() const; 107 void showTreeForThis() const;
109 #endif 108 #endif
110 109
111 private: 110 private:
112 explicit VisiblePositionTemplate(const PositionWithAffinityTemplate<Strategy >&); 111 explicit VisiblePositionTemplate(const PositionWithAffinityTemplate<Strategy >&);
113 112
114 PositionWithAffinityTemplate<Strategy> m_positionWithAffinity; 113 PositionWithAffinityTemplate<Strategy> m_positionWithAffinity;
115 }; 114 };
116 115
117 extern template class CORE_EXTERN_TEMPLATE_EXPORT VisiblePositionTemplate<Editin gStrategy>; 116 extern template class CORE_EXTERN_TEMPLATE_EXPORT VisiblePositionTemplate<Editin gStrategy>;
(...skipping 12 matching lines...) Expand all
130 129
131 } // namespace blink 130 } // namespace blink
132 131
133 #ifndef NDEBUG 132 #ifndef NDEBUG
134 // Outside the WebCore namespace for ease of invocation from gdb. 133 // Outside the WebCore namespace for ease of invocation from gdb.
135 void showTree(const blink::VisiblePosition*); 134 void showTree(const blink::VisiblePosition*);
136 void showTree(const blink::VisiblePosition&); 135 void showTree(const blink::VisiblePosition&);
137 #endif 136 #endif
138 137
139 #endif // VisiblePosition_h 138 #endif // VisiblePosition_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/Position.cpp ('k') | third_party/WebKit/Source/core/editing/VisiblePosition.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698