Bug 238153

Summary: Implement CSSNumericValue.mul, div, add, sub, max, and min
Product: WebKit Reporter: Alex Christensen <achristensen>
Component: New BugsAssignee: Alex Christensen <achristensen>
Status: RESOLVED FIXED    
Severity: Normal CC: esprehn+autocc, ews-watchlist, glenn, gyuyoung.kim, macpherson, menard, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
ews-feeder: commit-queue-
Patch
none
Patch none

Alex Christensen
Reported 2022-03-21 14:02:50 PDT
Implement CSSNumericValue.mul, div, add, sub, max, and min
Attachments
Patch (42.67 KB, patch)
2022-03-21 14:06 PDT, Alex Christensen
no flags
Patch (42.46 KB, patch)
2022-03-21 14:57 PDT, Alex Christensen
ews-feeder: commit-queue-
Patch (42.54 KB, patch)
2022-03-21 15:16 PDT, Alex Christensen
no flags
Patch (58.74 KB, patch)
2022-03-21 19:15 PDT, Alex Christensen
no flags
Alex Christensen
Comment 1 2022-03-21 14:06:55 PDT
Alex Christensen
Comment 2 2022-03-21 14:57:39 PDT
Alex Christensen
Comment 3 2022-03-21 15:16:15 PDT
Simon Fraser (smfr)
Comment 4 2022-03-21 17:42:34 PDT
Comment on attachment 455279 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=455279&action=review > Source/WebCore/css/typedom/CSSNumericValue.cpp:56 > + return static_cast<CSSMathNegate&>(value.get()).value(); Shouldn't we be using is<> and downcast<> here and everywhere? > Source/WebCore/css/typedom/CSSNumericValue.cpp:72 > + if (thisValue.unit() == "number") { Maybe units should be AtomStrings.
Alex Christensen
Comment 5 2022-03-21 18:15:38 PDT
(In reply to Simon Fraser (smfr) from comment #4) > Comment on attachment 455279 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=455279&action=review > > > Source/WebCore/css/typedom/CSSNumericValue.cpp:56 > > + return static_cast<CSSMathNegate&>(value.get()).value(); > > Shouldn't we be using is<> and downcast<> here and everywhere? Yes. That makes the code much nicer. > > Source/WebCore/css/typedom/CSSNumericValue.cpp:72 > > + if (thisValue.unit() == "number") { > > Maybe units should be AtomStrings. Or just CSSUnitType. I added a fixme comment because that's more involved and less related to the other changes.
Alex Christensen
Comment 6 2022-03-21 19:15:54 PDT
EWS
Comment 7 2022-03-21 20:23:54 PDT
Committed r291597 (248690@main): <https://commits.webkit.org/248690@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 455316 [details].
Radar WebKit Bug Importer
Comment 8 2022-03-21 20:24:17 PDT
Note You need to log in before you can comment on or make changes to this bug.