| Index: Source/core/rendering/RenderBox.cpp
|
| diff --git a/Source/core/rendering/RenderBox.cpp b/Source/core/rendering/RenderBox.cpp
|
| index ef86f2943fdc59b3cad488d411f7f2720369d011..e8fff11d0b0dd96d5a364c5e9c8b0b680498658c 100644
|
| --- a/Source/core/rendering/RenderBox.cpp
|
| +++ b/Source/core/rendering/RenderBox.cpp
|
| @@ -1501,13 +1501,6 @@ bool RenderBox::paintInvalidationLayerRectsForImage(WrappedImagePtr image, const
|
|
|
| InvalidationReason RenderBox::invalidatePaintIfNeeded(const PaintInvalidationState& paintInvalidationState, const RenderLayerModelObject& newPaintInvalidationContainer)
|
| {
|
| - const LayoutRect oldPaintInvalidationRect = previousPaintInvalidationRect();
|
| - const LayoutPoint oldPositionFromPaintInvalidationContainer = previousPositionFromPaintInvalidationContainer();
|
| - setPreviousPaintInvalidationRect(boundsRectForPaintInvalidation(&newPaintInvalidationContainer, &paintInvalidationState));
|
| - setPreviousPositionFromPaintInvalidationContainer(RenderLayer::positionFromPaintInvalidationContainer(this, &newPaintInvalidationContainer, &paintInvalidationState));
|
| -
|
| - InvalidationReason reason = InvalidationNone;
|
| -
|
| // If we are set to do a full paint invalidation that means the RenderView will be
|
| // issue paint invalidations. We can then skip issuing of paint invalidations for the child
|
| // renderers as they'll be covered by the RenderView.
|
| @@ -1518,8 +1511,11 @@ InvalidationReason RenderBox::invalidatePaintIfNeeded(const PaintInvalidationSta
|
| && layer()->isSelfPaintingLayer())) {
|
| setShouldDoFullPaintInvalidation(true, MarkOnlyThis);
|
| }
|
| + }
|
|
|
| - reason = RenderObject::invalidatePaintIfNeeded(newPaintInvalidationContainer, oldPaintInvalidationRect, oldPositionFromPaintInvalidationContainer, paintInvalidationState);
|
| + InvalidationReason reason = RenderBoxModelObject::invalidatePaintIfNeeded(paintInvalidationState, newPaintInvalidationContainer);
|
| +
|
| + if (!view()->doingFullPaintInvalidation()) {
|
| if (reason == InvalidationNone || reason == InvalidationIncremental)
|
| invalidatePaintForOverflowIfNeeded();
|
|
|
|
|