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

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

Issue 359593002: Selection should be updated after node is moved to another document (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed FrameSelectionTest.cpp Created 6 years, 5 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 | Annotate | Revision Log
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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 void setCaretVisibility(CaretVisibility); 254 void setCaretVisibility(CaretVisibility);
255 bool shouldBlinkCaret() const; 255 bool shouldBlinkCaret() const;
256 256
257 bool dispatchSelectStart(); 257 bool dispatchSelectStart();
258 258
259 void updateSelectionIfNeeded(const Position& base, const Position& extent, c onst Position& start, const Position& end); 259 void updateSelectionIfNeeded(const Position& base, const Position& extent, c onst Position& start, const Position& end);
260 260
261 void startObservingVisibleSelectionChange(); 261 void startObservingVisibleSelectionChange();
262 void stopObservingVisibleSelectionChangeIfNecessary(); 262 void stopObservingVisibleSelectionChangeIfNecessary();
263 263
264 VisibleSelection validateSelection(const VisibleSelection&);
265
264 LocalFrame* m_frame; 266 LocalFrame* m_frame;
265 267
266 LayoutUnit m_xPosForVerticalArrowNavigation; 268 LayoutUnit m_xPosForVerticalArrowNavigation;
267 269
268 VisibleSelection m_selection; 270 VisibleSelection m_selection;
269 bool m_observingVisibleSelection; 271 bool m_observingVisibleSelection;
270 VisiblePosition m_originalBase; // Used to store base before the adjustment at bidi boundary 272 VisiblePosition m_originalBase; // Used to store base before the adjustment at bidi boundary
271 TextGranularity m_granularity; 273 TextGranularity m_granularity;
272 274
273 // The range specified by the user, which may not be visually canonicalized (hence "logical"). 275 // The range specified by the user, which may not be visually canonicalized (hence "logical").
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 } 307 }
306 } // namespace WebCore 308 } // namespace WebCore
307 309
308 #ifndef NDEBUG 310 #ifndef NDEBUG
309 // Outside the WebCore namespace for ease of invocation from gdb. 311 // Outside the WebCore namespace for ease of invocation from gdb.
310 void showTree(const WebCore::FrameSelection&); 312 void showTree(const WebCore::FrameSelection&);
311 void showTree(const WebCore::FrameSelection*); 313 void showTree(const WebCore::FrameSelection*);
312 #endif 314 #endif
313 315
314 #endif // FrameSelection_h 316 #endif // FrameSelection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698