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

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

Issue 2745793002: Fix caret paint invalidation issues (Closed)
Patch Set: Created 3 years, 9 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 void commitAppearanceIfNeeded(LayoutView&); 209 void commitAppearanceIfNeeded(LayoutView&);
210 void setCaretVisible(bool caretIsVisible); 210 void setCaretVisible(bool caretIsVisible);
211 void scheduleVisualUpdate() const; 211 void scheduleVisualUpdate() const;
212 void scheduleVisualUpdateForPaintInvalidationIfNeeded() const; 212 void scheduleVisualUpdateForPaintInvalidationIfNeeded() const;
213 213
214 // Paint invalidation methods delegating to FrameCaret. 214 // Paint invalidation methods delegating to FrameCaret.
215 void clearPreviousCaretVisualRect(const LayoutBlock&); 215 void clearPreviousCaretVisualRect(const LayoutBlock&);
216 void layoutBlockWillBeDestroyed(const LayoutBlock&); 216 void layoutBlockWillBeDestroyed(const LayoutBlock&);
217 void updateStyleAndLayoutIfNeeded(); 217 void updateStyleAndLayoutIfNeeded();
218 void invalidatePaintIfNeeded(const LayoutBlock&, 218 void invalidatePaintIfNeeded(const LayoutBlock&,
219 const PaintInvalidatorContext&, 219 const PaintInvalidatorContext&);
220 PaintInvalidationReason);
221 220
222 void paintCaret(GraphicsContext&, const LayoutPoint&); 221 void paintCaret(GraphicsContext&, const LayoutPoint&);
223 222
224 // Used to suspend caret blinking while the mouse is down. 223 // Used to suspend caret blinking while the mouse is down.
225 void setCaretBlinkingSuspended(bool); 224 void setCaretBlinkingSuspended(bool);
226 bool isCaretBlinkingSuspended() const; 225 bool isCaretBlinkingSuspended() const;
227 226
228 // Focus 227 // Focus
229 void setFocused(bool); 228 void setFocused(bool);
230 bool isFocused() const { return m_focused; } 229 bool isFocused() const { return m_focused; }
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 331
333 } // namespace blink 332 } // namespace blink
334 333
335 #ifndef NDEBUG 334 #ifndef NDEBUG
336 // Outside the WebCore namespace for ease of invocation from gdb. 335 // Outside the WebCore namespace for ease of invocation from gdb.
337 void showTree(const blink::FrameSelection&); 336 void showTree(const blink::FrameSelection&);
338 void showTree(const blink::FrameSelection*); 337 void showTree(const blink::FrameSelection*);
339 #endif 338 #endif
340 339
341 #endif // FrameSelection_h 340 #endif // FrameSelection_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/FrameCaret.cpp ('k') | third_party/WebKit/Source/core/editing/FrameSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698