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

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

Issue 1993163003: [Editing][Stability] Recanonicalize m_originalbase in FrameSelection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 friend class FrameSelectionTest; 248 friend class FrameSelectionTest;
249 249
250 explicit FrameSelection(LocalFrame*); 250 explicit FrameSelection(LocalFrame*);
251 251
252 // Note: We have |selectionInFlatTree()| for unit tests, we should 252 // Note: We have |selectionInFlatTree()| for unit tests, we should
253 // use |visibleSelection<EditingInFlatTreeStrategy>()|. 253 // use |visibleSelection<EditingInFlatTreeStrategy>()|.
254 const VisibleSelectionInFlatTree& selectionInFlatTree() const; 254 const VisibleSelectionInFlatTree& selectionInFlatTree() const;
255 255
256 template <typename Strategy> 256 template <typename Strategy>
257 VisiblePositionTemplate<Strategy> originalBase() const; 257 VisiblePositionTemplate<Strategy> originalBase() const;
258 void setOriginalBase(const VisiblePosition& newBase) { m_originalBase = newB ase; } 258 void setOriginalBase(const VisiblePosition&);
259 void setOriginalBase(const VisiblePositionInFlatTree& newBase) { m_originalB aseInFlatTree = newBase; } 259 void setOriginalBase(const VisiblePositionInFlatTree&);
260 260
261 template <typename Strategy> 261 template <typename Strategy>
262 void setNonDirectionalSelectionIfNeededAlgorithm(const VisibleSelectionTempl ate<Strategy>&, TextGranularity, EndPointsAdjustmentMode); 262 void setNonDirectionalSelectionIfNeededAlgorithm(const VisibleSelectionTempl ate<Strategy>&, TextGranularity, EndPointsAdjustmentMode);
263 263
264 template <typename Strategy> 264 template <typename Strategy>
265 void setSelectionAlgorithm(const VisibleSelectionTemplate<Strategy>&, SetSel ectionOptions, CursorAlignOnScroll, TextGranularity); 265 void setSelectionAlgorithm(const VisibleSelectionTemplate<Strategy>&, SetSel ectionOptions, CursorAlignOnScroll, TextGranularity);
266 266
267 void respondToNodeModification(Node&, bool baseRemoved, bool extentRemoved, bool startRemoved, bool endRemoved); 267 void respondToNodeModification(Node&, bool baseRemoved, bool extentRemoved, bool startRemoved, bool endRemoved);
268 268
269 void notifyAccessibilityForSelectionChange(); 269 void notifyAccessibilityForSelectionChange();
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 } 337 }
338 } // namespace blink 338 } // namespace blink
339 339
340 #ifndef NDEBUG 340 #ifndef NDEBUG
341 // Outside the WebCore namespace for ease of invocation from gdb. 341 // Outside the WebCore namespace for ease of invocation from gdb.
342 void showTree(const blink::FrameSelection&); 342 void showTree(const blink::FrameSelection&);
343 void showTree(const blink::FrameSelection*); 343 void showTree(const blink::FrameSelection*);
344 #endif 344 #endif
345 345
346 #endif // FrameSelection_h 346 #endif // FrameSelection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698