Summary: | Regression(r253357) DeviceMotionEvent acceleration and rotationRate are null | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||
Component: | WebKit2 | Assignee: | Chris Dumez <cdumez> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | boris.stodic, darin, pvollan, webkit-bug-importer | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | WebKit Nightly Build | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 204770 | ||||||
Attachments: |
|
Description
Chris Dumez
2020-03-31 13:57:20 PDT
Created attachment 395093 [details]
Patch
Comment on attachment 395093 [details]
Patch
Optional seems OK. For floating point sometimes we use NaN instead as we would use null for a pointer or string.
(In reply to Darin Adler from comment #3) > Comment on attachment 395093 [details] > Patch > > Optional seems OK. For floating point sometimes we use NaN instead as we > would use null for a pointer or string. I personally really prefer Optional<double> than using special values like NaN. Makes the function declaration super clear. Committed r259315: <https://trac.webkit.org/changeset/259315> All reviewed patches have been landed. Closing bug and clearing flags on attachment 395093 [details]. *** Bug 210261 has been marked as a duplicate of this bug. *** |