WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
302668
[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
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2025-11-17 15:42:50 PST
<
rdar://problem/164917570
>
Taher
Comment 2
2025-11-17 15:56:57 PST
Pull request:
https://github.com/WebKit/WebKit/pull/54074
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.
Top of Page
Format For Printing
XML
Clone This Bug