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

Side by Side Diff: third_party/WebKit/Source/core/paint/BlockPaintInvalidator.cpp

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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/paint/BlockPaintInvalidator.h" 5 #include "core/paint/BlockPaintInvalidator.h"
6 6
7 #include "core/editing/DragCaret.h" 7 #include "core/editing/DragCaret.h"
8 #include "core/editing/FrameSelection.h" 8 #include "core/editing/FrameSelection.h"
9 #include "core/frame/LocalFrame.h" 9 #include "core/frame/LocalFrame.h"
10 #include "core/layout/LayoutBlock.h" 10 #include "core/layout/LayoutBlock.h"
11 #include "core/page/Page.h" 11 #include "core/page/Page.h"
12 #include "core/paint/BoxPaintInvalidator.h" 12 #include "core/paint/BoxPaintInvalidator.h"
13 #include "core/paint/ObjectPaintInvalidator.h" 13 #include "core/paint/ObjectPaintInvalidator.h"
14 #include "core/paint/PaintInvalidator.h" 14 #include "core/paint/PaintInvalidator.h"
15 15
16 namespace blink { 16 namespace blink {
17 17
18 void BlockPaintInvalidator::ClearPreviousVisualRects() { 18 void BlockPaintInvalidator::ClearPreviousVisualRects() {
19 block_.GetFrame()->Selection().ClearPreviousCaretVisualRect(block_); 19 block_.GetFrame()->Selection().ClearPreviousCaretVisualRect(block_);
20 block_.GetFrame()->GetPage()->GetDragCaret().ClearPreviousVisualRect(block_); 20 block_.GetFrame()->GetPage()->GetDragCaret().ClearPreviousVisualRect(block_);
21 } 21 }
22 22
23 PaintInvalidationReason BlockPaintInvalidator::InvalidatePaintIfNeeded( 23 PaintInvalidationReason BlockPaintInvalidator::InvalidatePaint(
24 const PaintInvalidatorContext& context) { 24 const PaintInvalidatorContext& context) {
25 PaintInvalidationReason reason = 25 PaintInvalidationReason reason =
26 BoxPaintInvalidator(block_, context).InvalidatePaintIfNeeded(); 26 BoxPaintInvalidator(block_, context).InvalidatePaint();
27 27
28 block_.GetFrame()->Selection().InvalidatePaintIfNeeded(block_, context); 28 block_.GetFrame()->Selection().InvalidatePaint(block_, context);
29 block_.GetFrame()->GetPage()->GetDragCaret().InvalidatePaintIfNeeded(block_, 29 block_.GetFrame()->GetPage()->GetDragCaret().InvalidatePaint(block_, context);
30 context);
31 30
32 return reason; 31 return reason;
33 } 32 }
34 33
35 } // namespace blink 34 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698