WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
195253
Retire legacy dtoa function and DecimalNumber class
https://bugs.webkit.org/show_bug.cgi?id=195253
Summary
Retire legacy dtoa function and DecimalNumber class
Darin Adler
Reported
2019-03-02 19:02:18 PST
Retire legacy dtoa function and DecimalNumber class
Attachments
Patch
(58.27 KB, patch)
2019-03-02 19:11 PST
,
Darin Adler
no flags
Details
Formatted Diff
Diff
Patch
(58.38 KB, patch)
2019-03-02 19:27 PST
,
Darin Adler
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews101 for mac-highsierra
(2.52 MB, application/zip)
2019-03-02 20:40 PST
,
EWS Watchlist
no flags
Details
Archive of layout-test-results from ews107 for mac-highsierra-wk2
(2.68 MB, application/zip)
2019-03-02 20:53 PST
,
EWS Watchlist
no flags
Details
Archive of layout-test-results from ews112 for mac-highsierra
(1.89 MB, application/zip)
2019-03-02 21:23 PST
,
EWS Watchlist
no flags
Details
Archive of layout-test-results from ews126 for ios-simulator-wk2
(2.60 MB, application/zip)
2019-03-02 21:40 PST
,
EWS Watchlist
no flags
Details
Archive of layout-test-results from ews205 for win-future
(12.85 MB, application/zip)
2019-03-02 21:49 PST
,
EWS Watchlist
no flags
Details
Patch
(90.03 KB, patch)
2019-03-02 23:34 PST
,
Darin Adler
no flags
Details
Formatted Diff
Diff
Patch
(90.97 KB, patch)
2019-03-02 23:53 PST
,
Darin Adler
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews125 for ios-simulator-wk2
(2.49 MB, application/zip)
2019-03-03 02:08 PST
,
EWS Watchlist
no flags
Details
Patch
(117.31 KB, patch)
2019-03-03 08:50 PST
,
Darin Adler
dbates
: review+
Details
Formatted Diff
Diff
Show Obsolete
(10)
View All
Add attachment
proposed patch, testcase, etc.
Darin Adler
Comment 1
2019-03-02 19:11:08 PST
Comment hidden (obsolete)
Created
attachment 363438
[details]
Patch
Darin Adler
Comment 2
2019-03-02 19:27:00 PST
Comment hidden (obsolete)
Created
attachment 363439
[details]
Patch
EWS Watchlist
Comment 3
2019-03-02 20:40:39 PST
Comment hidden (obsolete)
Comment on
attachment 363439
[details]
Patch
Attachment 363439
[details]
did not pass mac-ews (mac): Output:
https://webkit-queues.webkit.org/results/11348091
New failing tests: imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property.html imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property.html media/modern-media-controls/macos-inline-media-controls/macos-inline-media-controls-volume-styles.html imported/w3c/web-platform-tests/web-animations/animation-model/keyframe-effects/effect-value-iteration-composite-operation.html imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property.html fast/css/large-value-csstext.html
EWS Watchlist
Comment 4
2019-03-02 20:40:41 PST
Comment hidden (obsolete)
Created
attachment 363441
[details]
Archive of layout-test-results from ews101 for mac-highsierra The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews101 Port: mac-highsierra Platform: Mac OS X 10.13.6
EWS Watchlist
Comment 5
2019-03-02 20:53:45 PST
Comment hidden (obsolete)
Comment on
attachment 363439
[details]
Patch
Attachment 363439
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
https://webkit-queues.webkit.org/results/11348117
New failing tests: imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property.html imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property.html media/modern-media-controls/macos-inline-media-controls/macos-inline-media-controls-volume-styles.html imported/w3c/web-platform-tests/web-animations/animation-model/keyframe-effects/effect-value-iteration-composite-operation.html imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property.html fast/css/large-value-csstext.html
EWS Watchlist
Comment 6
2019-03-02 20:53:47 PST
Comment hidden (obsolete)
Created
attachment 363442
[details]
Archive of layout-test-results from ews107 for mac-highsierra-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews107 Port: mac-highsierra-wk2 Platform: Mac OS X 10.13.6
EWS Watchlist
Comment 7
2019-03-02 21:23:14 PST
Comment hidden (obsolete)
Comment on
attachment 363439
[details]
Patch
Attachment 363439
[details]
did not pass mac-debug-ews (mac): Output:
https://webkit-queues.webkit.org/results/11348165
New failing tests: imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property.html imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property.html media/modern-media-controls/macos-inline-media-controls/macos-inline-media-controls-volume-styles.html fast/css/large-value-csstext.html imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property.html imported/w3c/web-platform-tests/web-animations/animation-model/keyframe-effects/effect-value-iteration-composite-operation.html
EWS Watchlist
Comment 8
2019-03-02 21:23:16 PST
Comment hidden (obsolete)
Created
attachment 363443
[details]
Archive of layout-test-results from ews112 for mac-highsierra The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews112 Port: mac-highsierra Platform: Mac OS X 10.13.6
EWS Watchlist
Comment 9
2019-03-02 21:40:30 PST
Comment hidden (obsolete)
Comment on
attachment 363439
[details]
Patch
Attachment 363439
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
https://webkit-queues.webkit.org/results/11348211
New failing tests: imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property.html imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property.html imported/w3c/web-platform-tests/web-animations/animation-model/keyframe-effects/effect-value-iteration-composite-operation.html imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property.html fast/css/large-value-csstext.html
EWS Watchlist
Comment 10
2019-03-02 21:40:32 PST
Comment hidden (obsolete)
Created
attachment 363444
[details]
Archive of layout-test-results from ews126 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews126 Port: ios-simulator-wk2 Platform: Mac OS X 10.13.6
EWS Watchlist
Comment 11
2019-03-02 21:49:19 PST
Comment hidden (obsolete)
Comment on
attachment 363439
[details]
Patch
Attachment 363439
[details]
did not pass win-ews (win): Output:
https://webkit-queues.webkit.org/results/11348379
New failing tests: fast/css/large-value-csstext.html
EWS Watchlist
Comment 12
2019-03-02 21:49:31 PST
Comment hidden (obsolete)
Created
attachment 363445
[details]
Archive of layout-test-results from ews205 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews205 Port: win-future Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Darin Adler
Comment 13
2019-03-02 23:34:39 PST
Comment hidden (obsolete)
Created
attachment 363448
[details]
Patch
Darin Adler
Comment 14
2019-03-02 23:53:14 PST
Comment hidden (obsolete)
Created
attachment 363449
[details]
Patch
EWS Watchlist
Comment 15
2019-03-03 02:08:12 PST
Comment hidden (obsolete)
Comment on
attachment 363449
[details]
Patch
Attachment 363449
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
https://webkit-queues.webkit.org/results/11350326
New failing tests: imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property.html imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property.html imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property.html
EWS Watchlist
Comment 16
2019-03-03 02:08:13 PST
Comment hidden (obsolete)
Created
attachment 363453
[details]
Archive of layout-test-results from ews125 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews125 Port: ios-simulator-wk2 Platform: Mac OS X 10.13.6
Darin Adler
Comment 17
2019-03-03 08:50:02 PST
Created
attachment 363457
[details]
Patch
Darin Adler
Comment 18
2019-03-03 11:45:47 PST
Passes all tests, ready for review and landing. Lets us delete a lot of code!
Daniel Bates
Comment 19
2019-03-03 12:21:55 PST
Comment on
attachment 363457
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=363457&action=review
> Source/WTF/wtf/JSONValues.cpp:677 > + else > + output.appendECMAScriptNumber(m_value.number);
Nice.
> Source/WebCore/css/CSSPrimitiveValue.cpp:1015 > + return "attr(" + String(m_value.string) + ')';
Ok as-is. Could write using uniform initializer syntax.
> LayoutTests/fast/css/large-value-csstext-expected.txt:4 > -100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000% > -0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009% > +1e+254% > +9e-249%
What nonsense we were emitting. Have to ask though, are these results compatible with other browsers? Closer to other browsers? Farther from?
Darin Adler
Comment 20
2019-03-03 12:40:55 PST
Comment on
attachment 363457
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=363457&action=review
>> LayoutTests/fast/css/large-value-csstext-expected.txt:4 >> +9e-249% > > What nonsense we were emitting. Have to ask though, are these results compatible with other browsers? Closer to other browsers? Farther from?
Someone could investigate, I prefer not to at this time. This is currently the *only* test affected. Not sure there are *practical* considerations with enormous values. CSS serialization of floating point numbers is likely quite inconsistent already due to things like mixing single and double precision so there is a ton of room for improvement and I don’t think we’re truly ready to standardize these to help boost compatibility.
Darin Adler
Comment 21
2019-03-03 12:41:41 PST
Comment on
attachment 363457
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=363457&action=review
>> Source/WebCore/css/CSSPrimitiveValue.cpp:1015 >> + return "attr(" + String(m_value.string) + ')'; > > Ok as-is. Could write using uniform initializer syntax.
I chose to match the style of the thing down one line from here. Didn’t think too deeply about the best syntax.
Darin Adler
Comment 22
2019-03-03 12:43:06 PST
Committed
r242330
: <
https://trac.webkit.org/changeset/242330
>
Radar WebKit Bug Importer
Comment 23
2019-03-03 12:50:11 PST
<
rdar://problem/48545602
>
Simon Fraser (smfr)
Comment 24
2019-03-03 19:42:36 PST
Comment on
attachment 363457
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=363457&action=review
>>> LayoutTests/fast/css/large-value-csstext-expected.txt:4 >>> +9e-249% >> >> What nonsense we were emitting. Have to ask though, are these results compatible with other browsers? Closer to other browsers? Farther from? > > Someone could investigate, I prefer not to at this time. This is currently the *only* test affected. Not sure there are *practical* considerations with enormous values. CSS serialization of floating point numbers is likely quite inconsistent already due to things like mixing single and double precision so there is a ton of room for improvement and I don’t think we’re truly ready to standardize these to help boost compatibility.
Luckily CSS does allow scientific notion in numeric values now, and we support it (that only changed a couple of years go). I am slightly uneasy with the compatibility risk of this change, although anyone using parseFloat() in JS on computed style should end up with the same result.
Simon Fraser (smfr)
Comment 25
2019-03-03 19:52:18 PST
(In reply to Simon Fraser (smfr) from
comment #24
)
> Comment on
attachment 363457
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=363457&action=review
> > >>> LayoutTests/fast/css/large-value-csstext-expected.txt:4 > >>> +9e-249% > >> > >> What nonsense we were emitting. Have to ask though, are these results compatible with other browsers? Closer to other browsers? Farther from? > > > > Someone could investigate, I prefer not to at this time. This is currently the *only* test affected. Not sure there are *practical* considerations with enormous values. CSS serialization of floating point numbers is likely quite inconsistent already due to things like mixing single and double precision so there is a ton of room for improvement and I don’t think we’re truly ready to standardize these to help boost compatibility. > > Luckily CSS does allow scientific notion in numeric values now, and we > support it (that only changed a couple of years go). I am slightly uneasy > with the compatibility risk of this change, although anyone using > parseFloat() in JS on computed style should end up with the same result.
Chrome uses scientific notation so we're probably OK.
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