Bug 278969
Summary: | Length CSSPrimitiveValue::resolveAsLength() casts to double then Length casts to float | ||
---|---|---|---|
Product: | WebKit | Reporter: | Simon Fraser (smfr) <simon.fraser> |
Component: | CSS | Assignee: | Simon Fraser (smfr) <simon.fraser> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | koivisto, simon.fraser, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Simon Fraser (smfr)
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
<rdar://problem/135082837>
Simon Fraser (smfr)
Pull request: https://github.com/WebKit/WebKit/pull/32989
EWS
Committed 283037@main (7e186a333e75): <https://commits.webkit.org/283037@main>
Reviewed commits have been landed. Closing PR #32989 and removing active labels.