Refactor/simplify bounding box update in LayoutSVGImage
The |needs_boundaries_update_| flag isn't really used for anything since we always update the boundaries/object bounding box regardless. Hence it doesn't add anything that the return value of UpdateBoundingBox() doesn't already convey. In ImageChanged() only check if the image dimensions changed without updating the oBB, but rather leave that to the layout that will be triggered. Bug: 1028061 Change-Id: I418e49952bbd808ceecc44bfa27b7ce07f8d698d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2532459Reviewed-by:Stephen Chenney <schenney@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#826308}
Showing
Please register or sign in to comment