github web-platform-tests/wpt merge_pr_46714

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
15 months ago

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}

Don't miss a new wpt release

NewReleases is sending notifications on new releases.