Summary: | box-shadow and text-shadow do not yield float values while interpolating | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Antoine Quint <graouts> | ||||||||||||
Component: | Animations | Assignee: | Antoine Quint <graouts> | ||||||||||||
Status: | RESOLVED FIXED | ||||||||||||||
Severity: | Normal | CC: | changseok, clopez, dino, ehutchison, esprehn+autocc, ews-watchlist, glenn, graouts, gyuyoung.kim, koivisto, kondapallykalyan, macpherson, menard, mifenton, mmaxfield, ntim, pdr, simon.fraser, webkit-bug-importer, youennf | ||||||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||||||
Version: | WebKit Nightly Build | ||||||||||||||
Hardware: | Unspecified | ||||||||||||||
OS: | Unspecified | ||||||||||||||
See Also: | https://github.com/web-platform-tests/wpt/pull/30888 | ||||||||||||||
Bug Depends on: | |||||||||||||||
Bug Blocks: | 230404 | ||||||||||||||
Attachments: |
|
Description
Antoine Quint
2021-09-16 07:00:48 PDT
Created attachment 438345 [details]
Patch
This patch modifies the imported WPT tests. Please ensure that any changes on the tests (not coming from a WPT import) are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess Filed https://github.com/web-platform-tests/wpt/pull/30823 for the WPT changes. Created attachment 438468 [details]
Patch
Created attachment 438681 [details]
Patch
Comment on attachment 438681 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=438681&action=review > Source/WebCore/rendering/TextDecorationPainter.cpp:258 > + int shadowX = LayoutUnit(m_isHorizontal ? shadow->x().value() : shadow->y().value()); > + int shadowY = LayoutUnit(m_isHorizontal ? shadow->y().value() : -shadow->x().value()); These should be floats. Maybe we should even pixel snap them (not necessary for t his patch). > Source/WebCore/rendering/TextDecorationPainter.cpp:278 > + int shadowX = LayoutUnit(m_isHorizontal ? shadow->x().value() : shadow->y().value()); > + int shadowY = LayoutUnit(m_isHorizontal ? shadow->y().value() : -shadow->x().value()); Same. Created attachment 438690 [details]
Patch for landing
Committed r282768 (241903@main): <https://commits.webkit.org/241903@main> Reverted r282768 for reason: Slowdown on Mac EWS builders as a constant failure. Committed r282826 (241957@main): <https://commits.webkit.org/241957@main> Created attachment 441605 [details]
Patch for landing
Committed r284437 (243199@main): <https://commits.webkit.org/243199@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 441605 [details]. |