Make sure layout is triggered when changing clip-path resource
When changing the 'clip-path' property on an (SVG) element we need to recompute the visual rect since it includes contributions from the clip bounds (as well as the mask and filter bounds). This wasn't happening, which meant that the element wouldn't repaint properly if the old bounds were smaller than the new bounds. Add some detection of bounds-affecting changes to SVGResourcesCache and Make use of that in SVGResourcesCache::ClientStyleChanged() to mark the element for layout if needed so that its bounds are updated properly. Fixed: 1045915 Change-Id: Ia08904945b26c382e0b9c90c15b7cc45d40434cb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2023561Reviewed-by:Philip Rogers <pdr@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#736486}
Showing
Please register or sign in to comment