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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBox.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/LayoutBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
index c801ec96e5cbfc8cffdf26662a4ebc85873f6c69..4639c239406f387a4bb250408f3514529fab304c 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -1885,7 +1885,7 @@ void LayoutBox::EnsureIsReadyForPaintInvalidation() {
}
}
-PaintInvalidationReason LayoutBox::InvalidatePaintIfNeeded(
+PaintInvalidationReason LayoutBox::InvalidatePaint(
const PaintInvalidationState& paint_invalidation_state) {
if (HasBoxDecorationBackground()
// We also paint overflow controls in background phase.
@@ -1895,13 +1895,12 @@ PaintInvalidationReason LayoutBox::InvalidatePaintIfNeeded(
layer.SetNeedsPaintPhaseDescendantBlockBackgrounds();
}
- return LayoutBoxModelObject::InvalidatePaintIfNeeded(
- paint_invalidation_state);
+ return LayoutBoxModelObject::InvalidatePaint(paint_invalidation_state);
}
-PaintInvalidationReason LayoutBox::InvalidatePaintIfNeeded(
+PaintInvalidationReason LayoutBox::InvalidatePaint(
const PaintInvalidatorContext& context) const {
- return BoxPaintInvalidator(*this, context).InvalidatePaintIfNeeded();
+ return BoxPaintInvalidator(*this, context).InvalidatePaint();
}
LayoutRect LayoutBox::OverflowClipRect(
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.h ('k') | third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698