Closed Bug 1831268 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 39842 - Use the `dest_rect` parameter to subset in OptimizeToSingleTileDraw()

Categories

(Core :: Layout: Images, Video, and HTML Frames, task, P4)

task

Tracking

()

RESOLVED FIXED
115 Branch
Tracking Status
firefox115 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 39842 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/39842
Details from upstream follow.

Fredrik Söderquist <fs@opera.com> wrote:

Use the dest_rect parameter to subset in OptimizeToSingleTileDraw()

When painting boxes with rounded corners, the provided dest_rect can
differ slightly from the one(s) in BackgroundImageGeometry. Since the
former is what defines the actual drawing operation, using the latter
can lead to a distorted image.

Use the parameter rectangle when sub-setting to get the subset that
matches the intended draw.

Affects rendering of some generated background images (gradients)
because they will now miss the fast-path (snapped tile size vs.
unsnapped destination rectangle).

Bug: 1439780
Change-Id: Ib137a66bfba378673904bfdf9fe2fe53cfbaaa93

Reviewed-on: https://chromium-review.googlesource.com/4479597
WPT-Export-Revision: 47924c17459a68802a9c5399d462ca8f06c2af78

Component: web-platform-tests → Layout: Images, Video, and HTML Frames
Product: Testing → Core
Try push failed: decision task JMzYSujFQ4KuMZ1F6RGRBg returned error
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/388e6712e07a [wpt PR 39842] - Use the `dest_rect` parameter to subset in OptimizeToSingleTileDraw(), a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
You need to log in before you can comment on or make changes to this bug.