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

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

Issue 2852573002: Rename InvalidatePaintIfNeeded to drop deprecated IfNeeded suffix. (Closed)
Patch Set: Created 3 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, 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 void SetCaretVisibility(CaretVisibility); 70 void SetCaretVisibility(CaretVisibility);
71 IntRect AbsoluteCaretBounds() const; 71 IntRect AbsoluteCaretBounds() const;
72 72
73 bool ShouldShowBlockCursor() const { return should_show_block_cursor_; } 73 bool ShouldShowBlockCursor() const { return should_show_block_cursor_; }
74 void SetShouldShowBlockCursor(bool); 74 void SetShouldShowBlockCursor(bool);
75 75
76 // Paint invalidation methods delegating to DisplayItemClient. 76 // Paint invalidation methods delegating to DisplayItemClient.
77 void ClearPreviousVisualRect(const LayoutBlock&); 77 void ClearPreviousVisualRect(const LayoutBlock&);
78 void LayoutBlockWillBeDestroyed(const LayoutBlock&); 78 void LayoutBlockWillBeDestroyed(const LayoutBlock&);
79 void UpdateStyleAndLayoutIfNeeded(); 79 void UpdateStyleAndLayoutIfNeeded();
80 void InvalidatePaintIfNeeded(const LayoutBlock&, 80 void InvalidatePaint(const LayoutBlock&, const PaintInvalidatorContext&);
81 const PaintInvalidatorContext&);
82 81
83 bool ShouldPaintCaret(const LayoutBlock&) const; 82 bool ShouldPaintCaret(const LayoutBlock&) const;
84 void PaintCaret(GraphicsContext&, const LayoutPoint&) const; 83 void PaintCaret(GraphicsContext&, const LayoutPoint&) const;
85 84
86 // For unit tests. 85 // For unit tests.
87 const DisplayItemClient& CaretDisplayItemClientForTesting() const; 86 const DisplayItemClient& CaretDisplayItemClientForTesting() const;
88 const LayoutBlock* CaretLayoutBlockForTesting() const; 87 const LayoutBlock* CaretLayoutBlockForTesting() const;
89 bool ShouldPaintCaretForTesting() const { return should_paint_caret_; } 88 bool ShouldPaintCaretForTesting() const { return should_paint_caret_; }
90 void RecreateCaretBlinkTimerForTesting(RefPtr<WebTaskRunner>); 89 void RecreateCaretBlinkTimerForTesting(RefPtr<WebTaskRunner>);
91 90
(...skipping 18 matching lines...) Expand all
110 bool should_paint_caret_ : 1; 109 bool should_paint_caret_ : 1;
111 bool is_caret_blinking_suspended_ : 1; 110 bool is_caret_blinking_suspended_ : 1;
112 bool should_show_block_cursor_ : 1; 111 bool should_show_block_cursor_ : 1;
113 112
114 DISALLOW_COPY_AND_ASSIGN(FrameCaret); 113 DISALLOW_COPY_AND_ASSIGN(FrameCaret);
115 }; 114 };
116 115
117 } // namespace blink 116 } // namespace blink
118 117
119 #endif // FrameCaret_h 118 #endif // FrameCaret_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/DragCaret.cpp ('k') | third_party/WebKit/Source/core/editing/FrameCaret.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698