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

Issue 172223003: Input type Number maximum value increase (Closed)

Created:
6 years, 10 months ago by Habib Virji
Modified:
6 years, 9 months ago
CC:
blink-reviews, dglazkov+blink, adamk+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Input type Number maximum value increase Number input type maximum value increased from float to double. Float allowed only max value of 3.402823466e38, it has now been increased to 1.7976931348623158e+308, by using double. InvalidStateError exception is removed from NumberInputType::setValueAsDouble and NumberInputType::setValueAsDecimal, as HTMLInputType::setValueAsNumber checks if value is infinite. As NumberInputType functions will not be called, they have been removed. HTMLParserIdioms has also been updated as the functions are triggered in NumberInputType functions and has check for max values, thus updated. R=tkent, ch.dumez@samsung.com BUG=336020 TEST=Max value number can hold and exception thrown in case higher value than double is set Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168513

Patch Set 1 #

Total comments: 2

Patch Set 2 : Review comments fix #

Total comments: 2

Patch Set 3 : Updated comments in HTMLParserIdioms #

Total comments: 1

Patch Set 4 : Updated HTML5 section reference number with section link #

Patch Set 5 : Adds back in StepRange FLT_MANT_DIG #

Total comments: 6

Patch Set 6 : Reverted back StepRange changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -57 lines) Patch
M LayoutTests/fast/forms/number/number-stepup-stepdown.html View 2 chunks +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/forms/number/number-stepup-stepdown-expected.txt View 2 chunks +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/forms/number/number-stepup-stepdown-from-renderer.html View 2 chunks +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/forms/number/number-stepup-stepdown-from-renderer-expected.txt View 2 chunks +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/forms/number/number-valueasnumber.html View 2 chunks +6 lines, -6 lines 0 comments Download
M LayoutTests/fast/forms/number/number-valueasnumber-expected.txt View 2 chunks +6 lines, -6 lines 0 comments Download
M Source/core/html/forms/NumberInputType.cpp View 2 chunks +2 lines, -17 lines 0 comments Download
M Source/core/html/parser/HTMLParserIdioms.cpp View 1 2 3 4 chunks +7 lines, -12 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Habib Virji
Number input type limit increased by using double. Invalid state error removed as check exists ...
6 years, 10 months ago (2014-02-19 11:08:44 UTC) #1
Inactive
The change looks sane but I'll let tkent review this. https://codereview.chromium.org/172223003/diff/1/Source/core/html/parser/HTMLParserIdioms.cpp File Source/core/html/parser/HTMLParserIdioms.cpp (right): https://codereview.chromium.org/172223003/diff/1/Source/core/html/parser/HTMLParserIdioms.cpp#newcode111 ...
6 years, 10 months ago (2014-02-19 14:23:17 UTC) #2
Habib Virji
Thanks for the review. Removed FIXME comment. https://codereview.chromium.org/172223003/diff/1/Source/core/html/parser/HTMLParserIdioms.cpp File Source/core/html/parser/HTMLParserIdioms.cpp (right): https://codereview.chromium.org/172223003/diff/1/Source/core/html/parser/HTMLParserIdioms.cpp#newcode111 Source/core/html/parser/HTMLParserIdioms.cpp:111: // FIXME: ...
6 years, 10 months ago (2014-02-19 15:19:44 UTC) #3
tkent
+keishi and yosin
6 years, 10 months ago (2014-02-19 23:55:53 UTC) #4
yosin_UTC9
NACK According to HTML5 specification, http://www.whatwg.org/specs/web-apps/2009-10-27/multipage/common-microsyntaxes.html#real-numbers Real numbers should be IEEE 754 single-precision floating point ...
6 years, 10 months ago (2014-02-24 03:44:38 UTC) #5
Habib Virji
On 2014/02/24 03:44:38, Yoshi wrote: > NACK > > According to HTML5 specification, > http://www.whatwg.org/specs/web-apps/2009-10-27/multipage/common-microsyntaxes.html#real-numbers ...
6 years, 10 months ago (2014-02-24 09:22:24 UTC) #6
yosin_UTC9
On 2014/02/24 09:22:24, Habib Virji wrote: > On 2014/02/24 03:44:38, Yoshi wrote: > > NACK ...
6 years, 10 months ago (2014-02-25 02:18:40 UTC) #7
yosin_UTC9
https://codereview.chromium.org/172223003/diff/10010/Source/core/html/parser/HTMLParserIdioms.cpp File Source/core/html/parser/HTMLParserIdioms.cpp (right): https://codereview.chromium.org/172223003/diff/10010/Source/core/html/parser/HTMLParserIdioms.cpp#newcode110 Source/core/html/parser/HTMLParserIdioms.cpp:110: // See HTML5 2.5.4.3 `Real numbers.' Please update this ...
6 years, 10 months ago (2014-02-25 02:20:30 UTC) #8
Habib Virji
Thanks Yoshi for reviewing. Updated comments referring to new section in HTML5 spec (2.4.4.3) and ...
6 years, 10 months ago (2014-02-25 10:09:27 UTC) #9
yosin_UTC9
https://codereview.chromium.org/172223003/diff/150001/Source/core/html/parser/HTMLParserIdioms.cpp File Source/core/html/parser/HTMLParserIdioms.cpp (right): https://codereview.chromium.org/172223003/diff/150001/Source/core/html/parser/HTMLParserIdioms.cpp#newcode98 Source/core/html/parser/HTMLParserIdioms.cpp:98: // See HTML5 2.4.4.3 `Floating-point numbers.' and parseToDoubleForNumberType I ...
6 years, 10 months ago (2014-02-26 01:31:19 UTC) #10
tkent
We need to update acceptableError() and stepMismatch() in core/html/forms/StepRange.cpp.
6 years, 10 months ago (2014-02-26 03:49:15 UTC) #11
Habib Virji
On 2014/02/26 01:31:19, Yoshi wrote: > https://codereview.chromium.org/172223003/diff/150001/Source/core/html/parser/HTMLParserIdioms.cpp > File Source/core/html/parser/HTMLParserIdioms.cpp (right): > > https://codereview.chromium.org/172223003/diff/150001/Source/core/html/parser/HTMLParserIdioms.cpp#newcode98 > ...
6 years, 10 months ago (2014-02-26 08:49:22 UTC) #12
Habib Virji
@tkent: I added back in StepRange, FLT_MANT_DIG as found using DBL_MANT_DIG in acceptableError is breaking ...
6 years, 10 months ago (2014-02-26 17:11:12 UTC) #13
tkent
On 2014/02/26 17:11:12, Habib Virji wrote: > @tkent: I added back in StepRange, FLT_MANT_DIG as ...
6 years, 9 months ago (2014-02-28 01:11:17 UTC) #14
tkent
https://codereview.chromium.org/172223003/diff/190001/Source/core/html/forms/StepRange.cpp File Source/core/html/forms/StepRange.cpp (right): https://codereview.chromium.org/172223003/diff/190001/Source/core/html/forms/StepRange.cpp#newcode29 Source/core/html/forms/StepRange.cpp:29: #include <stdio.h> This change is unnecessary. https://codereview.chromium.org/172223003/diff/190001/Source/core/html/forms/StepRange.cpp#newcode161 Source/core/html/forms/StepRange.cpp:161: // ...
6 years, 9 months ago (2014-02-28 01:12:03 UTC) #15
Habib Virji
Updated as per review comments. https://codereview.chromium.org/172223003/diff/190001/Source/core/html/forms/StepRange.cpp File Source/core/html/forms/StepRange.cpp (right): https://codereview.chromium.org/172223003/diff/190001/Source/core/html/forms/StepRange.cpp#newcode29 Source/core/html/forms/StepRange.cpp:29: #include <stdio.h> On 2014/02/28 ...
6 years, 9 months ago (2014-03-04 09:33:44 UTC) #16
tkent
lgtm. Thank you!
6 years, 9 months ago (2014-03-04 22:19:30 UTC) #17
tkent
The CQ bit was checked by tkent@chromium.org
6 years, 9 months ago (2014-03-04 22:19:34 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/habib.virji@samsung.com/172223003/210001
6 years, 9 months ago (2014-03-04 22:19:56 UTC) #19
Habib Virji
On 2014/03/04 22:19:30, tkent wrote: > lgtm. Thank you! Thanks.
6 years, 9 months ago (2014-03-05 08:39:34 UTC) #20
commit-bot: I haz the power
6 years, 9 months ago (2014-03-05 18:44:21 UTC) #21
Message was sent while issue was closed.
Change committed as 168513

Powered by Google App Engine
This is Rietveld 408576698