Closed Bug 1617065 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 21915 - Only snap background src rects that are close to integral

Categories

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

task

Tracking

()

RESOLVED INVALID

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Stephen Chenney <schenney@chromium.org> wrote:

Only snap background src rects that are close to integral

Code to snap the src_rect for background image painting was snapping
the rect to an integer under the assumption that properties modifying
the source size were used overwhelmingly by sprite maps. This caused
severe jitter when animating the background properties of a small
image scaled up to something large.

Change the snapping to only snap when the rectangle is already close
to integral. This requires adding a method to FloatRect.

The test is in WPT form but not the WPT directory because I can
see no way at all to make a ref test for this case given it relies
on image resize filtering that is highly implementation dependent.

Bug: 925196
Change-Id: I1fcf16be6b453a5b411d59c91251fac06a153721
Reviewed-on: https://chromium-review.googlesource.com/2063916
WPT-Export-Revision: 751cc4da4f1c29b1db545d4e1dbed2d90a0fec67

Component: web-platform-tests → Layout: Images, Video, and HTML Frames
Product: Testing → Core
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.