Rework how "views" into SVGImages work
Add helpers for creating a new SVGImageViewInfo structure and querying
sizes based on the view info to SVGImageForContainer. This is meant to
make it more difficult to call SVGImage APIs with the wrong
view/fragment context.
Doing that can lead to strange bugs when sizes are inconsistent between
size-queries and painting.
Change all current users and then make the size-query APIs on SVGImage
private, funneling accesses through SVGImageForContainer.
Then drop the use_correct_viewbox
quirk argument to
LayoutSVGRoot::UnscaledIntrinsicSizingInfo.
Bug: 40069098
Change-Id: Iaacb5fa54ce5fce7084019123b3fb0fef2c85e07
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5613971
Reviewed-by: Philip Rogers pdr@chromium.org
Commit-Queue: Fredrik Söderquist fs@opera.com
Cr-Commit-Position: refs/heads/main@{#1314469}