Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/svg/SVGResourcesCache.cpp |
| diff --git a/third_party/WebKit/Source/core/layout/svg/SVGResourcesCache.cpp b/third_party/WebKit/Source/core/layout/svg/SVGResourcesCache.cpp |
| index 5422c57f26f73dbef20bcc70007e23e968304288..2a10053c3e1dd6503af675b6dd73525758b69886 100644 |
| --- a/third_party/WebKit/Source/core/layout/svg/SVGResourcesCache.cpp |
| +++ b/third_party/WebKit/Source/core/layout/svg/SVGResourcesCache.cpp |
| @@ -128,8 +128,13 @@ void SVGResourcesCache::clientStyleChanged(LayoutObject* layoutObject, |
| cache.addResourcesFromLayoutObject(layoutObject, newStyle); |
| } |
| + bool needLayout = false; |
| + |
| + if (layoutObject->isSVGResourceContainer()) |
|
fs
2017/01/23 12:44:24
What if we only toggle 'visibility' on the <rect>?
|
| + needLayout = diff.needsPaintInvalidation(); |
| + |
| LayoutSVGResourceContainer::markForLayoutAndParentResourceInvalidation( |
| - layoutObject, false); |
| + layoutObject, needLayout); |
| } |
| void SVGResourcesCache::clientWasAddedToTree(LayoutObject* layoutObject, |