RESOLVED FIXED Bug 178319
Change String::number to not implicitly be "fixed precision 6 digits"
https://bugs.webkit.org/show_bug.cgi?id=178319
Summary Change String::number to not implicitly be "fixed precision 6 digits"
Darin Adler
Reported 2017-10-14 19:23:23 PDT
Change String::number to use "shortest" instead of "fixed precision 6 digits"
Attachments
Patch (183.19 KB, patch)
2017-10-14 19:23 PDT, Darin Adler
no flags
Patch (197.03 KB, patch)
2017-10-28 16:24 PDT, Darin Adler
no flags
Patch (198.11 KB, patch)
2017-10-29 18:21 PDT, Darin Adler
no flags
Patch (204.02 KB, patch)
2017-10-29 19:37 PDT, Darin Adler
no flags
Patch (204.04 KB, patch)
2017-10-29 20:25 PDT, Darin Adler
no flags
Patch (206.89 KB, patch)
2017-10-29 22:51 PDT, Darin Adler
no flags
Patch (206.89 KB, patch)
2017-10-29 23:00 PDT, Darin Adler
no flags
Archive of layout-test-results from ews103 for mac-elcapitan (1.04 MB, application/zip)
2017-10-30 00:08 PDT, Build Bot
no flags
Archive of layout-test-results from ews105 for mac-elcapitan-wk2 (1.20 MB, application/zip)
2017-10-30 00:15 PDT, Build Bot
no flags
Archive of layout-test-results from ews112 for mac-elcapitan (1.80 MB, application/zip)
2017-10-30 00:26 PDT, Build Bot
no flags
Archive of layout-test-results from ews122 for ios-simulator-wk2 (1.17 MB, application/zip)
2017-10-30 00:31 PDT, Build Bot
no flags
Patch (222.78 KB, patch)
2017-11-01 22:06 PDT, Darin Adler
no flags
Patch (9.34 KB, patch)
2019-03-16 14:58 PDT, Darin Adler
no flags
Patch (10.68 KB, patch)
2019-03-17 17:02 PDT, Darin Adler
no flags
Patch (22.87 KB, patch)
2019-05-13 05:47 PDT, Darin Adler
no flags
Archive of layout-test-results from ews124 for ios-simulator-wk2 (2.48 MB, application/zip)
2019-05-13 07:59 PDT, EWS Watchlist
no flags
Patch (23.99 KB, patch)
2019-05-13 08:05 PDT, Darin Adler
no flags
Patch (23.59 KB, patch)
2019-05-13 20:04 PDT, Darin Adler
no flags
Patch (25.15 KB, patch)
2019-05-14 19:12 PDT, Darin Adler
no flags
Darin Adler
Comment 1 2017-10-14 19:23:47 PDT
Comment hidden (obsolete)
Build Bot
Comment 2 2017-10-14 19:25:09 PDT
Comment hidden (obsolete)
Darin Adler
Comment 3 2017-10-28 16:24:23 PDT
Comment hidden (obsolete)
Darin Adler
Comment 4 2017-10-29 18:21:39 PDT
Comment hidden (obsolete)
Darin Adler
Comment 5 2017-10-29 19:37:11 PDT
Comment hidden (obsolete)
Darin Adler
Comment 6 2017-10-29 20:25:53 PDT
Comment hidden (obsolete)
Darin Adler
Comment 7 2017-10-29 22:51:02 PDT
Comment hidden (obsolete)
Darin Adler
Comment 8 2017-10-29 23:00:24 PDT
Comment hidden (obsolete)
Build Bot
Comment 9 2017-10-30 00:08:29 PDT
Comment hidden (obsolete)
Build Bot
Comment 10 2017-10-30 00:08:30 PDT
Comment hidden (obsolete)
Build Bot
Comment 11 2017-10-30 00:15:32 PDT
Comment hidden (obsolete)
Build Bot
Comment 12 2017-10-30 00:15:33 PDT
Comment hidden (obsolete)
Build Bot
Comment 13 2017-10-30 00:26:02 PDT
Comment hidden (obsolete)
Build Bot
Comment 14 2017-10-30 00:26:04 PDT
Comment hidden (obsolete)
Build Bot
Comment 15 2017-10-30 00:31:35 PDT
Comment hidden (obsolete)
Build Bot
Comment 16 2017-10-30 00:31:37 PDT
Comment hidden (obsolete)
Darin Adler
Comment 17 2017-11-01 22:06:27 PDT
Comment hidden (obsolete)
Build Bot
Comment 18 2017-11-02 00:11:40 PDT
Comment hidden (obsolete)
Darin Adler
Comment 19 2017-11-02 09:17:30 PDT
Comment hidden (obsolete)
Darin Adler
Comment 20 2019-03-10 12:46:54 PDT
Comment hidden (obsolete)
Darin Adler
Comment 21 2019-03-16 14:58:05 PDT
Comment hidden (obsolete)
Darin Adler
Comment 22 2019-03-17 17:02:39 PDT
Comment hidden (obsolete)
Darin Adler
Comment 23 2019-05-13 05:47:35 PDT
Comment hidden (obsolete)
EWS Watchlist
Comment 24 2019-05-13 07:59:45 PDT
Comment hidden (obsolete)
EWS Watchlist
Comment 25 2019-05-13 07:59:47 PDT
Comment hidden (obsolete)
Darin Adler
Comment 26 2019-05-13 08:05:18 PDT
Comment hidden (obsolete)
Darin Adler
Comment 27 2019-05-13 20:04:23 PDT
Comment hidden (obsolete)
Darin Adler
Comment 28 2019-05-14 19:12:34 PDT
Sam Weinig
Comment 29 2019-05-17 19:33:21 PDT
Comment on attachment 369918 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=369918&action=review > Source/WTF/wtf/text/StringBuilder.h:236 > // FIXME: Delete in favor of the name appendShortestFormNumber or just appendNumber. Since appendNumber for these types are now 'delete', this comment should be updated to just call for using appendShortestFormNumber. > Source/WTF/wtf/text/WTFString.h:193 > // FIXME: Delete in favor of the name numberToStringShortest or just number. Since number for these types are now 'delete', this comment should be updated to just call for using numberToStringShortest.
Darin Adler
Comment 30 2019-05-19 10:49:21 PDT
Comment on attachment 369918 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=369918&action=review >> Source/WTF/wtf/text/StringBuilder.h:236 >> // FIXME: Delete in favor of the name appendShortestFormNumber or just appendNumber. > > Since appendNumber for these types are now 'delete', this comment should be updated to just call for using appendShortestFormNumber. Comment refers to the overload for double. In this patch, only the float overload is deleted. It’s there and deleted to prevent implicit float to double type conversion. So I think I am still happy with the comment as is. >> Source/WTF/wtf/text/WTFString.h:193 >> // FIXME: Delete in favor of the name numberToStringShortest or just number. > > Since number for these types are now 'delete', this comment should be updated to just call for using numberToStringShortest. Same thought as above.
Darin Adler
Comment 31 2019-05-19 10:51:02 PDT
Also, thanks for the review. I feel like I’ve been working on this for so long, but it’s almost done.
WebKit Commit Bot
Comment 32 2019-05-19 11:17:46 PDT
Comment on attachment 369918 [details] Patch Clearing flags on attachment: 369918 Committed r245504: <https://trac.webkit.org/changeset/245504>
WebKit Commit Bot
Comment 33 2019-05-19 11:17:48 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 34 2019-05-19 11:18:21 PDT
Note You need to log in before you can comment on or make changes to this bug.