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..4fc3a4244f4c2329fadf44405825d3b3297b96ff 100644 |
--- a/third_party/WebKit/Source/core/layout/svg/SVGResourcesCache.cpp |
+++ b/third_party/WebKit/Source/core/layout/svg/SVGResourcesCache.cpp |
@@ -128,8 +128,11 @@ void SVGResourcesCache::clientStyleChanged(LayoutObject* layoutObject, |
cache.addResourcesFromLayoutObject(layoutObject, newStyle); |
} |
+ bool needLayout = false; |
+ needLayout |= diff.needsPaintInvalidation(); |
fs
2017/01/23 13:03:40
Now we'll trigger a lot more layout than we need t
|
+ |
LayoutSVGResourceContainer::markForLayoutAndParentResourceInvalidation( |
- layoutObject, false); |
+ layoutObject, needLayout); |
} |
void SVGResourcesCache::clientWasAddedToTree(LayoutObject* layoutObject, |