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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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, 2005, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2004, 2005, 2006 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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 207
208 EphemeralRange firstEphemeralRangeOf(const VisibleSelection& selection) 208 EphemeralRange firstEphemeralRangeOf(const VisibleSelection& selection)
209 { 209 {
210 if (selection.isNone()) 210 if (selection.isNone())
211 return EphemeralRange(); 211 return EphemeralRange();
212 Position start = selection.start().parentAnchoredEquivalent(); 212 Position start = selection.start().parentAnchoredEquivalent();
213 Position end = selection.end().parentAnchoredEquivalent(); 213 Position end = selection.end().parentAnchoredEquivalent();
214 return EphemeralRange(start, end); 214 return EphemeralRange(start, end);
215 } 215 }
216 216
217 PassRefPtrWillBeRawPtr<Range> firstRangeOf(const VisibleSelection& selection) 217 RawPtr<Range> firstRangeOf(const VisibleSelection& selection)
218 { 218 {
219 return createRange(firstEphemeralRangeOf(selection)); 219 return createRange(firstEphemeralRangeOf(selection));
220 } 220 }
221 221
222 template <typename Strategy> 222 template <typename Strategy>
223 EphemeralRangeTemplate<Strategy> VisibleSelectionTemplate<Strategy>::toNormalize dEphemeralRange() const 223 EphemeralRangeTemplate<Strategy> VisibleSelectionTemplate<Strategy>::toNormalize dEphemeralRange() const
224 { 224 {
225 if (isNone()) 225 if (isNone())
226 return EphemeralRangeTemplate<Strategy>(); 226 return EphemeralRangeTemplate<Strategy>();
227 227
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
975 { 975 {
976 sel.showTreeForThis(); 976 sel.showTreeForThis();
977 } 977 }
978 978
979 void showTree(const blink::VisibleSelectionInFlatTree* sel) 979 void showTree(const blink::VisibleSelectionInFlatTree* sel)
980 { 980 {
981 if (sel) 981 if (sel)
982 sel->showTreeForThis(); 982 sel->showTreeForThis();
983 } 983 }
984 #endif 984 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698