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

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

Issue 2698313003: Fix caret paint invalidation when moving between blocks (Closed)
Patch Set: - Created 3 years, 10 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 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 // to use updated selection, we should make |updateIfNeeded()| private. 289 // to use updated selection, we should make |updateIfNeeded()| private.
290 void updateIfNeeded(); 290 void updateIfNeeded();
291 291
292 void cacheRangeOfDocument(Range*); 292 void cacheRangeOfDocument(Range*);
293 Range* documentCachedRange() const; 293 Range* documentCachedRange() const;
294 void clearDocumentCachedRange(); 294 void clearDocumentCachedRange();
295 295
296 DECLARE_TRACE(); 296 DECLARE_TRACE();
297 297
298 private: 298 private:
299 friend class BlockPaintInvalidatorTest; 299 friend class CaretDisplayItemClientTest;
300 friend class FrameSelectionTest; 300 friend class FrameSelectionTest;
301 friend class PaintControllerPaintTestForSlimmingPaintV1AndV2; 301 friend class PaintControllerPaintTestForSlimmingPaintV1AndV2;
302 friend class SelectionControllerTest; 302 friend class SelectionControllerTest;
303 FRIEND_TEST_ALL_PREFIXES(PaintControllerPaintTestForSlimmingPaintV1AndV2, 303 FRIEND_TEST_ALL_PREFIXES(PaintControllerPaintTestForSlimmingPaintV1AndV2,
304 FullDocumentPaintingWithCaret); 304 FullDocumentPaintingWithCaret);
305 305
306 explicit FrameSelection(LocalFrame&); 306 explicit FrameSelection(LocalFrame&);
307 307
308 const DisplayItemClient& caretDisplayItemClientForTesting() const; 308 const DisplayItemClient& caretDisplayItemClientForTesting() const;
309 309
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 350
351 } // namespace blink 351 } // namespace blink
352 352
353 #ifndef NDEBUG 353 #ifndef NDEBUG
354 // Outside the WebCore namespace for ease of invocation from gdb. 354 // Outside the WebCore namespace for ease of invocation from gdb.
355 void showTree(const blink::FrameSelection&); 355 void showTree(const blink::FrameSelection&);
356 void showTree(const blink::FrameSelection*); 356 void showTree(const blink::FrameSelection*);
357 #endif 357 #endif
358 358
359 #endif // FrameSelection_h 359 #endif // FrameSelection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698