Closed Bug 1945202 Opened 24 days ago Closed 21 days ago

[wpt-sync] Sync PR 50415 - Provide layer bounds for text-shadow rendering

Categories

(Core :: Layout: Generated Content, Lists, and Counters, task, P4)

task

Tracking

()

RESOLVED FIXED
136 Branch
Tracking Status
firefox136 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

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

Provide layer bounds for text-shadow rendering

Lower layers have trouble culling away the shadows (and/or overestimate
their bounds) which lead to high raster costs.

Pass the computed visual rect for the text fragment when setting up the
layer for the shadow. This appears to reduce the raster cost
significantly in the case described in the bug.

Add a physical version of InkOverflow::ExpandForShadowOverflow and
simplify the application of the text-shadow ink overflow contribution.
This also fixes an issue where the ink overflow was miscalculated for
the vertical-lr writing mode.

Guard with the flag "TextShadowPaintingOptimization".

Bug: 391914237
Change-Id: I847d0a8291150ec1a92d4e7424c3a09eeecca134
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6213771
Commit-Queue: Fredrik Söderquist \<fs@opera.com>
Reviewed-by: Stephen Chenney \<schenney@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1414139}

Component: web-platform-tests → Layout: Generated Content, Lists, and Counters
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

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

Total 1 tests

Status Summary

Firefox

FAIL: 1

Chrome

PASS: 1

Safari

FAIL: 1

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/22f40f94cf2e [wpt PR 50415] - Provide layer bounds for text-shadow rendering, a=testonly
Status: NEW → RESOLVED
Closed: 21 days ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
You need to log in before you can comment on or make changes to this bug.