Fix SVG filter data invalidation for empty containers
Empty containers will fail to create FilterData because they have an empty bounding box. When children were added to the container, making the bounding box non-empty we would fail to mark the paint properties as needing update because of the check for existing FilterData in SVGElementResourceClient::InvalidateFilterData(). Instead always dispose of the filter data and mark paint properties for update, and use the |filter_data_dirty_| flag as an early-out check. Since we can now call InvalidateFilterData() directly in SVGElementResourceClient::ResourceElementChanged(), fold ClearFilterData() into InvalidateFilterData(). Bug: 1154050 Change-Id: I01c8ebac4f62532e2c17aabc3d998d7601dbb71b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2566992Reviewed-by:Xianzhu Wang <wangxianzhu@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#832391}
Showing
Please register or sign in to comment