[wpt-sync] Sync PR 39842 - Use the `dest_rect` parameter to subset in OptimizeToSingleTileDraw()
Categories
(Core :: Layout: Images, Video, and HTML Frames, task, P4)
Tracking
()
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: Ib137a66bfba378673904bfdf9fe2fe53cfbaaa93Reviewed-on: https://chromium-review.googlesource.com/4479597
WPT-Export-Revision: 47924c17459a68802a9c5399d462ca8f06c2af78
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
Assignee | ||
Comment 2•2 years ago
|
||
Assignee | ||
Comment 3•2 years ago
|
||
Comment 5•2 years ago
|
||
bugherder |
Description
•