[wpt-sync] Sync PR 50415 - Provide layer bounds for text-shadow rendering
Categories
(Core :: Layout: Generated Content, Lists, and Counters, task, P4)
Tracking
()
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}
Assignee | ||
Updated•24 days ago
|
Assignee | ||
Updated•24 days ago
|
Assignee | ||
Updated•24 days ago
|
Assignee | ||
Comment 1•24 days ago
|
||
Assignee | ||
Comment 2•24 days ago
|
||
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
Details
New Tests That Don't Pass
- /css/css-pseudo/highlight-painting-001.html [wpt.fyi]:
FAIL
(Chrome:PASS
, Safari:FAIL
)
Description
•