Bug 302668

Summary: [Style] LineWidth evaluation performs redundant LayoutUnit conversion in floorToDevicePixel
Product: WebKit Reporter: Taher <taher_ali>
Component: CSSAssignee: Taher <taher_ali>
Status: RESOLVED FIXED    
Severity: Normal CC: koivisto, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

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.