Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(182)

Issue 1120133004: Serialize <number> to round to at most 6 decimals (Closed)

Created:
5 years, 7 months ago by rwlbuis
Modified:
5 years, 7 months ago
CC:
blink-reviews, blink-reviews-css, ed+blinkwatch_opera.com, dglazkov+blink, apavlov+blink_chromium.org, darktears, simonp
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Serialize <number> to round to at most 6 decimals Serialize <number> to round to at most 6 decimals and don't serialize trailing zeroes. Rebase test results to reflect this change in behavior. Behavior matches Firefox. BUG=453288 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=195702

Patch Set 1 #

Patch Set 2 : V2 #

Patch Set 3 : Use String::format #

Patch Set 4 : Fix some tests #

Patch Set 5 : Fix remaining test #

Total comments: 2

Patch Set 6 : Round to 6 after comma + fix tests #

Patch Set 7 : V7 #

Total comments: 2

Patch Set 8 : Fix tests #

Total comments: 1

Patch Set 9 : Patch for landing #

Patch Set 10 : Fix win + linux test #

Patch Set 11 : Patch for landing II #

Patch Set 12 : Try to fix win #

Unified diffs Side-by-side diffs Delta from patch set Stats (+976 lines, -135 lines) Patch
M LayoutTests/animations/interpolation/filter-interpolation-expected.txt View 1 2 3 6 2 chunks +12 lines, -12 lines 0 comments Download
M LayoutTests/css-parser/scientific-notation.html View 1 2 3 4 5 6 2 chunks +8 lines, -8 lines 0 comments Download
M LayoutTests/css3/calc/font-size-fractional-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/css3/calc/simplification-expected.txt View 1 2 3 6 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/css3/filters/filter-property-computed-style-expected.txt View 1 2 3 6 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/css3/filters/script-tests/filter-property-computed-style.js View 1 2 3 6 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/getComputedStyle/getComputedStyle-margin-percentage-expected.txt View 1 2 6 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/css/large-number-round-trip-expected.txt View 1 2 6 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/css/large-numbers.html View 1 2 3 4 5 6 7 4 chunks +99 lines, -10 lines 0 comments Download
M LayoutTests/fast/css/large-numbers-expected.txt View 1 2 3 4 5 6 7 1 chunk +100 lines, -50 lines 0 comments Download
M LayoutTests/fast/css/round-trip-values-expected.txt View 1 2 6 1 chunk +34 lines, -34 lines 0 comments Download
A LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/shape-margin-002-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +11 lines, -0 lines 0 comments Download
A LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/shape-outside-inset-001-expected.txt View 1 2 3 4 5 6 7 1 chunk +687 lines, -0 lines 0 comments Download
M LayoutTests/svg/hittest/rect-miterlimit.html View 1 2 3 4 6 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/svg/zoom/xy-getcomputedstyle.html View 1 2 3 6 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/transforms/transform-inherit-initial-unprefixed.html View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/transforms/transform-inherit-initial-unprefixed-expected.txt View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/css/CSSPrimitiveValue.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +7 lines, -3 lines 0 comments Download

Messages

Total messages: 63 (27 generated)
rwlbuis
PTAL
5 years, 7 months ago (2015-05-05 02:21:31 UTC) #2
Erik Dahlström (inactive)
I really like this change, it aligns with how svg numbers/lengths are serialized, which should ...
5 years, 7 months ago (2015-05-05 08:34:12 UTC) #4
rune
I see that this actually matches Gecko. Did you check their source code to see ...
5 years, 7 months ago (2015-05-05 11:35:51 UTC) #6
rwlbuis
On 2015/05/05 11:35:51, rune wrote: > I see that this actually matches Gecko. Did you ...
5 years, 7 months ago (2015-05-05 15:04:25 UTC) #7
rwlbuis
On 2015/05/05 08:34:12, Erik Dahlström wrote: > I really like this change, it aligns with ...
5 years, 7 months ago (2015-05-05 15:06:48 UTC) #8
Erik Dahlström (inactive)
On 2015/05/05 15:06:48, rwlbuis wrote: > On 2015/05/05 08:34:12, Erik Dahlström wrote: > > I ...
5 years, 7 months ago (2015-05-05 15:30:32 UTC) #9
rune
The spec author simonp@opera.com is on paternity leave. timloh@ usually have more opinions than me ...
5 years, 7 months ago (2015-05-05 20:00:09 UTC) #10
rwlbuis
On 2015/05/05 20:00:09, rune wrote: > The spec author mailto:simonp@opera.com is on paternity leave. timloh@ ...
5 years, 7 months ago (2015-05-05 22:02:37 UTC) #11
Timothy Loh
On 2015/05/05 22:02:37, rwlbuis wrote: > On 2015/05/05 20:00:09, rune wrote: > > The spec ...
5 years, 7 months ago (2015-05-06 01:55:16 UTC) #12
zcorpan
On 2015/05/05 22:02:37, rwlbuis wrote: > - do we round with at most 6 digits ...
5 years, 7 months ago (2015-05-06 17:48:41 UTC) #13
rwlbuis
On 2015/05/06 17:48:41, zcorpan wrote: > On 2015/05/05 22:02:37, rwlbuis wrote: > > - do ...
5 years, 7 months ago (2015-05-06 21:46:56 UTC) #14
rwlbuis
@timloh please have a look at patchset #6, it implements zcorpan's suggestion (note that it ...
5 years, 7 months ago (2015-05-06 21:56:13 UTC) #15
rwlbuis
On 2015/05/06 21:56:13, rwlbuis wrote: > @timloh please have a look at patchset #6, it ...
5 years, 7 months ago (2015-05-07 18:42:29 UTC) #16
Timothy Loh
On 2015/05/07 18:42:29, rwlbuis wrote: > On 2015/05/06 21:56:13, rwlbuis wrote: > > @timloh please ...
5 years, 7 months ago (2015-05-11 00:03:56 UTC) #17
rwlbuis
On 2015/05/11 00:03:56, Timothy Loh wrote: > On 2015/05/07 18:42:29, rwlbuis wrote: > > On ...
5 years, 7 months ago (2015-05-11 20:39:03 UTC) #18
Timothy Loh
Sorry for the delay :( This is fine aside from a couple of tests. https://codereview.chromium.org/1120133004/diff/120001/LayoutTests/fast/css/large-numbers-expected.txt ...
5 years, 7 months ago (2015-05-18 04:32:02 UTC) #19
rwlbuis
On 2015/05/18 04:32:02, Timothy Loh wrote: > Sorry for the delay :( > > This ...
5 years, 7 months ago (2015-05-18 23:19:11 UTC) #21
Timothy Loh
lgtm https://codereview.chromium.org/1120133004/diff/160001/LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/shape-margin-002.html File LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/shape-margin-002.html (right): https://codereview.chromium.org/1120133004/diff/160001/LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/shape-margin-002.html#newcode20 LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/shape-margin-002.html:20: "expected_inline": "10.1235px", This file looks imported too, I ...
5 years, 7 months ago (2015-05-19 00:26:18 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1120133004/180001
5 years, 7 months ago (2015-05-19 13:40:12 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/63069)
5 years, 7 months ago (2015-05-19 16:14:44 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1120133004/180001
5 years, 7 months ago (2015-05-19 16:20:24 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1120133004/200001
5 years, 7 months ago (2015-05-19 18:58:54 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/62157)
5 years, 7 months ago (2015-05-19 20:12:39 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1120133004/220001
5 years, 7 months ago (2015-05-19 21:56:59 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/33439)
5 years, 7 months ago (2015-05-19 22:04:54 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1120133004/240001
5 years, 7 months ago (2015-05-19 22:15:09 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1120133004/260001
5 years, 7 months ago (2015-05-20 19:30:05 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/62416)
5 years, 7 months ago (2015-05-20 20:16:29 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1120133004/260001
5 years, 7 months ago (2015-05-20 20:50:57 UTC) #51
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/62445)
5 years, 7 months ago (2015-05-20 21:21:57 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1120133004/260001
5 years, 7 months ago (2015-05-20 21:33:13 UTC) #55
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/62462)
5 years, 7 months ago (2015-05-20 23:02:54 UTC) #57
rwlbuis
On 2015/05/20 23:02:54, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
5 years, 7 months ago (2015-05-21 01:15:09 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1120133004/280001
5 years, 7 months ago (2015-05-21 15:26:31 UTC) #61
rwlbuis
On 2015/05/21 01:15:09, rwlbuis wrote: > On 2015/05/20 23:02:54, I haz the power (commit-bot) wrote: ...
5 years, 7 months ago (2015-05-21 15:26:44 UTC) #62
commit-bot: I haz the power
5 years, 7 months ago (2015-05-21 16:54:36 UTC) #63
Message was sent while issue was closed.
Committed patchset #12 (id:280001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=195702

Powered by Google App Engine
This is Rietveld 408576698