Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp |
| diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp |
| index 266baa1a00c48b4f8aab03fb8e9124c762c500c4..571f0d4e2a8859792260299a3414ae6630b6f48f 100644 |
| --- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp |
| +++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp |
| @@ -184,7 +184,10 @@ void LayoutSVGShape::layout() { |
| // feeds into the paint invalidation rect - so we need to call it for both |
| // the shape-update and the bounds-update flag, since . |
|
pdr.
2016/10/31 20:49:05
Not your fault (https://crrev.com/fe8421b9573ca696
Xianzhu
2016/10/31 22:10:30
The fix is in https://codereview.chromium.org/2465
|
| if (m_needsShapeUpdate || m_needsBoundariesUpdate) { |
| + FloatRect oldStrokeBoundingBox = strokeBoundingBox(); |
|
pdr.
2016/10/31 20:49:05
Are you using the stroke bounding box because it i
Xianzhu
2016/10/31 22:10:30
Used strokeBoundingBox just because it is used for
|
| updateShapeFromElement(); |
| + if (oldStrokeBoundingBox != strokeBoundingBox()) |
| + setShouldDoFullPaintInvalidation(); |
| m_needsShapeUpdate = false; |
| m_paintInvalidationBoundingBox = strokeBoundingBox(); |