| Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGModelObject.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGModelObject.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGModelObject.cpp
|
| index 243a47ac57576abfcae703a830d47875511ff8da..9e57cfbd0c3fa7109eca3fd5b005475fa1252869 100644
|
| --- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGModelObject.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGModelObject.cpp
|
| @@ -130,7 +130,7 @@ IntRect LayoutSVGModelObject::absoluteElementBoundingBoxRect() const
|
| return localToAbsoluteQuad(FloatQuad(paintInvalidationRectInLocalCoordinates())).enclosingBoundingBox();
|
| }
|
|
|
| -void LayoutSVGModelObject::invalidateTreeIfNeeded(PaintInvalidationState& paintInvalidationState)
|
| +void LayoutSVGModelObject::invalidateTreeIfNeeded(const PaintInvalidationState& paintInvalidationState)
|
| {
|
| ASSERT(!needsLayout());
|
|
|
| @@ -139,11 +139,12 @@ void LayoutSVGModelObject::invalidateTreeIfNeeded(PaintInvalidationState& paintI
|
| if (!shouldCheckForPaintInvalidation(paintInvalidationState))
|
| return;
|
|
|
| - invalidatePaintIfNeeded(paintInvalidationState, paintInvalidationState.paintInvalidationContainer());
|
| - clearPaintInvalidationState(paintInvalidationState);
|
| + PaintInvalidationState newPaintInvalidationState(paintInvalidationState, *this);
|
| + invalidatePaintIfNeeded(newPaintInvalidationState);
|
| + clearPaintInvalidationFlags(newPaintInvalidationState);
|
|
|
| - PaintInvalidationState childPaintInvalidationState(paintInvalidationState, *this);
|
| - invalidatePaintOfSubtreesIfNeeded(childPaintInvalidationState);
|
| + newPaintInvalidationState.updatePaintOffsetAndClipForChildren();
|
| + invalidatePaintOfSubtreesIfNeeded(newPaintInvalidationState);
|
| }
|
|
|
| } // namespace blink
|
|
|