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

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

Issue 1958093002: CONTINUED Make FrameSelection to hold non-canonicalized positions Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2017-01-16T20:04:35 Created 3 years, 11 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 146
147 void updateIfNeeded(); 147 void updateIfNeeded();
148 148
149 #ifndef NDEBUG 149 #ifndef NDEBUG
150 void showTreeForThis() const; 150 void showTreeForThis() const;
151 #endif 151 #endif
152 static void PrintTo(const VisibleSelectionTemplate&, std::ostream*); 152 static void PrintTo(const VisibleSelectionTemplate&, std::ostream*);
153 153
154 private: 154 private:
155 friend class SelectionAdjuster; 155 friend class SelectionAdjuster;
156 friend class SelectionEditor;
156 157
157 VisibleSelectionTemplate(const SelectionTemplate<Strategy>&); 158 VisibleSelectionTemplate(const SelectionTemplate<Strategy>&);
158 159
159 void validate(TextGranularity = CharacterGranularity); 160 void validate(TextGranularity = CharacterGranularity);
160 161
161 // Support methods for validate() 162 // Support methods for validate()
162 void setBaseAndExtentToDeepEquivalents(); 163 void setBaseAndExtentToDeepEquivalents();
163 void adjustSelectionToAvoidCrossingShadowBoundaries(); 164 void adjustSelectionToAvoidCrossingShadowBoundaries();
164 void adjustSelectionToAvoidCrossingEditingBoundaries(); 165 void adjustSelectionToAvoidCrossingEditingBoundaries();
165 void updateSelectionType(); 166 void updateSelectionType();
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 224
224 #ifndef NDEBUG 225 #ifndef NDEBUG
225 // Outside the WebCore namespace for ease of invocation from gdb. 226 // Outside the WebCore namespace for ease of invocation from gdb.
226 void showTree(const blink::VisibleSelection&); 227 void showTree(const blink::VisibleSelection&);
227 void showTree(const blink::VisibleSelection*); 228 void showTree(const blink::VisibleSelection*);
228 void showTree(const blink::VisibleSelectionInFlatTree&); 229 void showTree(const blink::VisibleSelectionInFlatTree&);
229 void showTree(const blink::VisibleSelectionInFlatTree*); 230 void showTree(const blink::VisibleSelectionInFlatTree*);
230 #endif 231 #endif
231 232
232 #endif // VisibleSelection_h 233 #endif // VisibleSelection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698