RESOLVED FIXED302668
[Style] LineWidth evaluation performs redundant LayoutUnit conversion in floorToDevicePixel
https://bugs.webkit.org/show_bug.cgi?id=302668
Summary [Style] LineWidth evaluation performs redundant LayoutUnit conversion in floo...
Taher
Reported 2025-11-17 15:42:44 PST
When evaluating border widths during layout, Evaluation<Result>::operator() calls floorToDevicePixel(float, float) which internally converts the float to LayoutUnit, performs the snapping calculation, and returns a float. This result is then converted to LayoutUnit (if Result is LayoutUnit) again by the caller.
Attachments
Radar WebKit Bug Importer
Comment 1 2025-11-17 15:42:50 PST
Taher
Comment 2 2025-11-17 15:56:57 PST
EWS
Comment 3 2025-11-19 15:19:15 PST
Committed 303290@main (0f6e74d7d5d2): <https://commits.webkit.org/303290@main> Reviewed commits have been landed. Closing PR #54074 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.