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

Unified Diff: third_party/WebKit/Source/core/paint/BoxPaintInvalidator.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/BoxPaintInvalidator.cpp
diff --git a/third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp
index 7051025e79703dc701dade8446c5523f0b6d4a5f..47460d729a78313519edbd23de7a59483e72ef7d 100644
--- a/third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp
+++ b/third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp
@@ -246,7 +246,7 @@ void BoxPaintInvalidator::InvalidateScrollingContentsBackgroundIfNeeded() {
kPaintInvalidationBackgroundOnScrollingContentsLayer);
}
-PaintInvalidationReason BoxPaintInvalidator::InvalidatePaintIfNeeded() {
+PaintInvalidationReason BoxPaintInvalidator::InvalidatePaint() {
InvalidateScrollingContentsBackgroundIfNeeded();
PaintInvalidationReason reason = ComputePaintInvalidationReason();
@@ -271,12 +271,12 @@ PaintInvalidationReason BoxPaintInvalidator::InvalidatePaintIfNeeded() {
// Though we have done incremental invalidation, we still need to call
// ObjectPaintInvalidator with PaintInvalidationNone to do any other
// required operations.
- reason = std::max(reason, ObjectPaintInvalidatorWithContext(box_, context_)
- .InvalidatePaintIfNeededWithComputedReason(
- kPaintInvalidationNone));
+ reason = std::max(
+ reason, ObjectPaintInvalidatorWithContext(box_, context_)
+ .InvalidatePaintWithComputedReason(kPaintInvalidationNone));
} else {
reason = ObjectPaintInvalidatorWithContext(box_, context_)
- .InvalidatePaintIfNeededWithComputedReason(reason);
+ .InvalidatePaintWithComputedReason(reason);
}
if (PaintLayerScrollableArea* area = box_.GetScrollableArea())

Powered by Google App Engine
This is Rietveld 408576698