WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
278969
Length CSSPrimitiveValue::resolveAsLength() casts to double then Length casts to float
https://bugs.webkit.org/show_bug.cgi?id=278969
Summary
Length CSSPrimitiveValue::resolveAsLength() casts to double then Length casts...
Simon Fraser (smfr)
Reported
2024-08-31 12:49:32 PDT
This doesn't make much sense. When we create a Length for a Fixed length, CSSPrimitiveValue::resolveAsLength does Length(clampTo<double>(resolveAsLengthDouble(conversionData)..., but then the Length ctor does : m_floatValue(static_cast<float>(value))
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2024-08-31 12:49:47 PDT
<
rdar://problem/135082837
>
Simon Fraser (smfr)
Comment 2
2024-08-31 12:55:11 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/32989
EWS
Comment 3
2024-09-01 08:58:50 PDT
Committed
283037@main
(7e186a333e75): <
https://commits.webkit.org/283037@main
> Reviewed commits have been landed. Closing PR #32989 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