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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.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/layout/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index cb68bd80f0b18fe3704406fdf823261ff72ae9d4..d5ec9ed5e2db5815a3b67b9de40a5650ad33cf72 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -1172,7 +1172,7 @@ void LayoutObject::InvalidateTreeIfNeeded(
}
PaintInvalidationReason reason =
- InvalidatePaintIfNeeded(new_paint_invalidation_state);
+ InvalidatePaint(new_paint_invalidation_state);
new_paint_invalidation_state.UpdateForChildren(reason);
InvalidatePaintOfSubtreesIfNeeded(new_paint_invalidation_state);
@@ -1195,7 +1195,7 @@ LayoutRect LayoutObject::SelectionRectInViewCoordinates() const {
return selection_rect;
}
-PaintInvalidationReason LayoutObject::InvalidatePaintIfNeeded(
+PaintInvalidationReason LayoutObject::InvalidatePaint(
const PaintInvalidationState& paint_invalidation_state) {
DCHECK_EQ(&paint_invalidation_state.CurrentObject(), this);
@@ -1235,14 +1235,13 @@ PaintInvalidationReason LayoutObject::InvalidatePaintIfNeeded(
return kPaintInvalidationNone;
}
- return InvalidatePaintIfNeeded(context);
+ return InvalidatePaint(context);
}
DISABLE_CFI_PERF
-PaintInvalidationReason LayoutObject::InvalidatePaintIfNeeded(
+PaintInvalidationReason LayoutObject::InvalidatePaint(
const PaintInvalidatorContext& context) const {
- return ObjectPaintInvalidatorWithContext(*this, context)
- .InvalidatePaintIfNeeded();
+ return ObjectPaintInvalidatorWithContext(*this, context).InvalidatePaint();
}
void LayoutObject::AdjustVisualRectForCompositedScrolling(
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.h ('k') | third_party/WebKit/Source/core/layout/LayoutTable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698