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

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

Issue 2709973005: Get rid of useless function VisibleSelection::updateIfNeeded() (Closed)
Patch Set: 2017-02-25T10:01:23 Do not remove FrameSelection::updateIfNeeded() Created 3 years, 10 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 bool isContentEditable() const; 131 bool isContentEditable() const;
132 bool hasEditableStyle() const; 132 bool hasEditableStyle() const;
133 bool isContentRichlyEditable() const; 133 bool isContentRichlyEditable() const;
134 134
135 bool isValidFor(const Document&) const; 135 bool isValidFor(const Document&) const;
136 void setWithoutValidation(const PositionTemplate<Strategy>&, 136 void setWithoutValidation(const PositionTemplate<Strategy>&,
137 const PositionTemplate<Strategy>&); 137 const PositionTemplate<Strategy>&);
138 138
139 DECLARE_TRACE(); 139 DECLARE_TRACE();
140 140
141 void updateIfNeeded();
142
143 #ifndef NDEBUG 141 #ifndef NDEBUG
144 void showTreeForThis() const; 142 void showTreeForThis() const;
145 #endif 143 #endif
146 static void PrintTo(const VisibleSelectionTemplate&, std::ostream*); 144 static void PrintTo(const VisibleSelectionTemplate&, std::ostream*);
147 145
148 private: 146 private:
149 friend class SelectionAdjuster; 147 friend class SelectionAdjuster;
150 148
151 VisibleSelectionTemplate(const SelectionTemplate<Strategy>&); 149 VisibleSelectionTemplate(const SelectionTemplate<Strategy>&);
152 150
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 215
218 #ifndef NDEBUG 216 #ifndef NDEBUG
219 // Outside the WebCore namespace for ease of invocation from gdb. 217 // Outside the WebCore namespace for ease of invocation from gdb.
220 void showTree(const blink::VisibleSelection&); 218 void showTree(const blink::VisibleSelection&);
221 void showTree(const blink::VisibleSelection*); 219 void showTree(const blink::VisibleSelection*);
222 void showTree(const blink::VisibleSelectionInFlatTree&); 220 void showTree(const blink::VisibleSelectionInFlatTree&);
223 void showTree(const blink::VisibleSelectionInFlatTree*); 221 void showTree(const blink::VisibleSelectionInFlatTree*);
224 #endif 222 #endif
225 223
226 #endif // VisibleSelection_h 224 #endif // VisibleSelection_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/Editor.cpp ('k') | third_party/WebKit/Source/core/editing/VisibleSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698