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

Unified Diff: third_party/WebKit/Source/core/paint/BlockPaintInvalidator.cpp

Issue 2852573002: Rename InvalidatePaintIfNeeded to drop deprecated IfNeeded suffix. (Closed)
Patch Set: Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/paint/BlockPaintInvalidator.cpp
diff --git a/third_party/WebKit/Source/core/paint/BlockPaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/BlockPaintInvalidator.cpp
index 6e57c13cc157a4d1bb82748342f0394d9abee64a..3aa0040ed038027e89633f1a5beb136300fa3c14 100644
--- a/third_party/WebKit/Source/core/paint/BlockPaintInvalidator.cpp
+++ b/third_party/WebKit/Source/core/paint/BlockPaintInvalidator.cpp
@@ -20,14 +20,13 @@ void BlockPaintInvalidator::ClearPreviousVisualRects() {
block_.GetFrame()->GetPage()->GetDragCaret().ClearPreviousVisualRect(block_);
}
-PaintInvalidationReason BlockPaintInvalidator::InvalidatePaintIfNeeded(
+PaintInvalidationReason BlockPaintInvalidator::InvalidatePaint(
const PaintInvalidatorContext& context) {
PaintInvalidationReason reason =
- BoxPaintInvalidator(block_, context).InvalidatePaintIfNeeded();
+ BoxPaintInvalidator(block_, context).InvalidatePaint();
- block_.GetFrame()->Selection().InvalidatePaintIfNeeded(block_, context);
- block_.GetFrame()->GetPage()->GetDragCaret().InvalidatePaintIfNeeded(block_,
- context);
+ block_.GetFrame()->Selection().InvalidatePaint(block_, context);
+ block_.GetFrame()->GetPage()->GetDragCaret().InvalidatePaint(block_, context);
return reason;
}

Powered by Google App Engine
This is Rietveld 408576698