Closed Bug 1716857 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 29404 - Fix density corrected painting in DrawTiledBackground single-tile path

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox91 fixed)

RESOLVED FIXED
91 Branch
Tracking Status
firefox91 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

b'Fredrik S\xc3\xb6derqvist <fs@opera.com>' wrote:

Fix density corrected painting in DrawTiledBackground single-tile path

GraphicsContext::DrawImage(...) (and related machinery like the various
Image::Draw implementation) have different requirements on the source
rect from GraphicsContext::DrawImageTiled(...) so the two code-paths in
DrawTiledBackground() need to use different variants of Image::Size()
when computing the intrinsic tile size.
This moves the single-tile path closer to that in PaintFastBottomLayer()
as well.

The computation of tile scale is pushed into the generic path because it
is not used in the single-tile path (ComputeSubsetForBackground()
computes an equivalent there).

Bug: 1220762
Change-Id: I039aedc62b84725ffd1683e701f0b9f410e76d06

Reviewed-on: https://chromium-review.googlesource.com/2964279
WPT-Export-Revision: e0759d845add118e8ac0f207833b9fb29d180ac2

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests

Status Summary

Firefox

PASS: 1

Chrome

FAIL: 1

Safari

FAIL: 1

Links

GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d551f87efeac
[wpt PR 29404] - Fix density corrected painting in DrawTiledBackground single-tile path, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
You need to log in before you can comment on or make changes to this bug.