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

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

Issue 2352763004: Prune CreateVisiblePositionDeprecated from Editor::firstRectForRange (Closed)
Patch Set: 201609231108 Created 4 years, 2 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/Editor.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) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 210
211 Range* findStringAndScrollToVisible(const String&, Range*, FindOptions); 211 Range* findStringAndScrollToVisible(const String&, Range*, FindOptions);
212 Range* findRangeOfString(const String& target, const EphemeralRange& referen ceRange, FindOptions); 212 Range* findRangeOfString(const String& target, const EphemeralRange& referen ceRange, FindOptions);
213 Range* findRangeOfString(const String& target, const EphemeralRangeInFlatTre e& referenceRange, FindOptions); 213 Range* findRangeOfString(const String& target, const EphemeralRangeInFlatTre e& referenceRange, FindOptions);
214 214
215 const VisibleSelection& mark() const; // Mark, to be used as emacs uses it. 215 const VisibleSelection& mark() const; // Mark, to be used as emacs uses it.
216 void setMark(const VisibleSelection&); 216 void setMark(const VisibleSelection&);
217 217
218 void computeAndSetTypingStyle(StylePropertySet*, InputEvent::InputType); 218 void computeAndSetTypingStyle(StylePropertySet*, InputEvent::InputType);
219 219
220 IntRect firstRectForRange(const EphemeralRange&) const; 220 IntRect firstRectForRange(const EphemeralRange&) const;
tkent 2016/09/23 05:32:14 Now this function assumes up-to-date layout. We s
Xiaocheng 2016/09/23 05:54:44 Done.
221 IntRect firstRectForRange(const Range*) const;
tkent 2016/09/23 05:32:14 Please mention this removal in the CL description.
Xiaocheng 2016/09/23 05:54:44 Done.
222 221
223 void respondToChangedSelection(const VisibleSelection& oldSelection, FrameSe lection::SetSelectionOptions); 222 void respondToChangedSelection(const VisibleSelection& oldSelection, FrameSe lection::SetSelectionOptions);
224 223
225 bool markedTextMatchesAreHighlighted() const; 224 bool markedTextMatchesAreHighlighted() const;
226 void setMarkedTextMatchesAreHighlighted(bool); 225 void setMarkedTextMatchesAreHighlighted(bool);
227 226
228 void replaceSelectionWithFragment(DocumentFragment*, bool selectReplacement, bool smartReplace, bool matchStyle); 227 void replaceSelectionWithFragment(DocumentFragment*, bool selectReplacement, bool smartReplace, bool matchStyle);
229 void replaceSelectionWithText(const String&, bool selectReplacement, bool sm artReplace); 228 void replaceSelectionWithText(const String&, bool selectReplacement, bool sm artReplace);
230 229
231 // TODO(xiaochengh): Replace |bool| parameters by |enum|. 230 // TODO(xiaochengh): Replace |bool| parameters by |enum|.
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 312
314 inline bool Editor::markedTextMatchesAreHighlighted() const 313 inline bool Editor::markedTextMatchesAreHighlighted() const
315 { 314 {
316 return m_areMarkedTextMatchesHighlighted; 315 return m_areMarkedTextMatchesHighlighted;
317 } 316 }
318 317
319 318
320 } // namespace blink 319 } // namespace blink
321 320
322 #endif // Editor_h 321 #endif // Editor_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/Editor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698