Refactor SVGResourcesCache::ClientLayoutChanged
This moves the code from said method into a new helper class named SVGResourceInvalidator, streamlining it and splitting invalidation into 'effects' and 'paints'. At the callsites, make the invalidation calls conditional on the reference box (bounds) changing rather than layout dirty flags. We can do this because we no longer have an implicit dependency between effect bounds and the visual rect of the LayoutObject. Also use this helper in RemoveFromCacheAndInvalidateDependencies() since it matches the pattern used there (but add a comment about it possibly being unnecessary). Bug: 1028061, 1028063 Change-Id: Ic46481d925c6ac73e9eae4f8a9afc2ddd31c093c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2449995Reviewed-by:Philip Rogers <pdr@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#814591}
Showing
Please register or sign in to comment