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 92f2ff031cc5d54709b9ef5544257e8daa7354b3..2b8a93e18f42f1e0641942d73c12bab95471f84b 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
@@ -1753,7 +1753,7 @@ void LayoutBox::PaintMask(const PaintInfo& paint_info, |
} |
void LayoutBox::ImageChanged(WrappedImagePtr image, const IntRect*) { |
- // TODO(chrishtr): support PaintInvalidationDelayedFull for animated border |
+ // TODO(chrishtr): support kPaintInvalidationDelayedFull for animated border |
// images. |
if ((StyleRef().BorderImage().GetImage() && |
StyleRef().BorderImage().GetImage()->Data() == image) || |
@@ -1875,14 +1875,11 @@ void LayoutBox::EnsureIsReadyForPaintInvalidation() { |
return; |
// Do regular full paint invalidation if the object with |
- // PaintInvalidationDelayedFull is onscreen. |
- if (IntersectsVisibleViewport()) { |
- // Conservatively assume the delayed paint invalidation was caused by |
- // background image change. |
- SetBackgroundChangedSinceLastPaintInvalidation(); |
- SetShouldDoFullPaintInvalidationWithoutGeometryChange( |
- kPaintInvalidationFull); |
- } |
+ // kPaintInvalidationDelayedFull is onscreen. |
+ // Conservatively assume the delayed paint invalidation was caused by |
+ // background image change. |
+ SetBackgroundChangedSinceLastPaintInvalidation(); |
+ SetShouldDoFullPaintInvalidationWithoutGeometryChange(kPaintInvalidationFull); |
} |
PaintInvalidationReason LayoutBox::InvalidatePaintIfNeeded( |