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

Unified Diff: third_party/WebKit/Source/core/paint/PaintInvalidator.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/PaintInvalidator.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
index a093214a08042650d511df00983008f1384d1dde..7b84d3e892f5de0c7a841654a14fa06410c974fe 100644
--- a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
@@ -407,9 +407,8 @@ void PaintInvalidator::UpdateVisualRect(const LayoutObject& object,
ObjectPaintInvalidator(object).SetLocationInBacking(context.new_location);
}
-void PaintInvalidator::InvalidatePaintIfNeeded(
- FrameView& frame_view,
- PaintInvalidatorContext& context) {
+void PaintInvalidator::InvalidatePaint(FrameView& frame_view,
+ PaintInvalidatorContext& context) {
LayoutView* layout_view = frame_view.GetLayoutView();
CHECK(layout_view);
@@ -426,9 +425,8 @@ void PaintInvalidator::InvalidatePaintIfNeeded(
}
}
-void PaintInvalidator::InvalidatePaintIfNeeded(
- const LayoutObject& object,
- PaintInvalidatorContext& context) {
+void PaintInvalidator::InvalidatePaint(const LayoutObject& object,
+ PaintInvalidatorContext& context) {
TRACE_EVENT1(TRACE_DISABLED_BY_DEFAULT("blink.invalidation"),
"PaintInvalidator::invalidatePaintIfNeeded()", "object",
object.DebugName().Ascii());
@@ -465,7 +463,7 @@ void PaintInvalidator::InvalidatePaintIfNeeded(
PaintInvalidatorContext::kForcedSubtreeNoRasterInvalidation;
}
- PaintInvalidationReason reason = object.InvalidatePaintIfNeeded(context);
+ PaintInvalidationReason reason = object.InvalidatePaint(context);
switch (reason) {
case kPaintInvalidationDelayedFull:
pending_delayed_paint_invalidations_.push_back(&object);
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintInvalidator.h ('k') | third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698