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

Issue 2597103002: Prevent floating point overflow when using calc() with large values (Closed)

Created:
4 years ago by alancutter (OOO until 2018)
Modified:
3 years, 11 months ago
Reviewers:
sashab, eae
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Prevent floating point overflow when using calc() with large values BUG=676286 Committed: https://crrev.com/66a95ed79bb18584d8ea1b045e43a96ec4e80dfc Cr-Commit-Position: refs/heads/master@{#441339}

Patch Set 1 #

Patch Set 2 : Bigger numbers #

Total comments: 2

Patch Set 3 : Revert changes to LengthFunctions.cpp #

Patch Set 4 : Remove layout affected test case #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -15 lines) Patch
A third_party/WebKit/LayoutTests/css3/calc/calc-overflow.html View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSCalculationValue.cpp View 3 chunks +16 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp View 1 2 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 33 (18 generated)
alancutter (OOO until 2018)
4 years ago (2016-12-22 05:41:53 UTC) #3
sashab
Well done, LGTM!! How do we build in this clampTo<> functionality without having to put ...
3 years, 11 months ago (2017-01-02 23:42:57 UTC) #7
alancutter (OOO until 2018)
On 2017/01/02 at 23:42:57, sashab wrote: > Well done, LGTM!! How do we build in ...
3 years, 11 months ago (2017-01-02 23:55:30 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2597103002/20001
3 years, 11 months ago (2017-01-02 23:55:47 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/333791)
3 years, 11 months ago (2017-01-03 00:02:00 UTC) #12
alancutter (OOO until 2018)
+eae for platform/LengthFunctions.cpp.
3 years, 11 months ago (2017-01-03 00:42:32 UTC) #14
eae
LGTM w/caveat https://codereview.chromium.org/2597103002/diff/20001/third_party/WebKit/Source/platform/LengthFunctions.cpp File third_party/WebKit/Source/platform/LengthFunctions.cpp (right): https://codereview.chromium.org/2597103002/diff/20001/third_party/WebKit/Source/platform/LengthFunctions.cpp#newcode41 third_party/WebKit/Source/platform/LengthFunctions.cpp:41: return clampTo<float>(maximumValue * length.percent() / 100.0f); clampTo ...
3 years, 11 months ago (2017-01-03 04:37:30 UTC) #15
alancutter (OOO until 2018)
https://codereview.chromium.org/2597103002/diff/20001/third_party/WebKit/Source/platform/LengthFunctions.cpp File third_party/WebKit/Source/platform/LengthFunctions.cpp (right): https://codereview.chromium.org/2597103002/diff/20001/third_party/WebKit/Source/platform/LengthFunctions.cpp#newcode41 third_party/WebKit/Source/platform/LengthFunctions.cpp:41: return clampTo<float>(maximumValue * length.percent() / 100.0f); On 2017/01/03 at ...
3 years, 11 months ago (2017-01-03 05:17:02 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2597103002/40001
3 years, 11 months ago (2017-01-03 05:49:01 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/356796)
3 years, 11 months ago (2017-01-03 08:33:33 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2597103002/60001
3 years, 11 months ago (2017-01-04 04:23:41 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/364248)
3 years, 11 months ago (2017-01-04 07:04:53 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2597103002/60001
3 years, 11 months ago (2017-01-04 07:06:15 UTC) #28
commit-bot: I haz the power
Committed patchset #4 (id:60001)
3 years, 11 months ago (2017-01-04 08:09:36 UTC) #31
commit-bot: I haz the power
3 years, 11 months ago (2017-01-04 08:11:32 UTC) #33
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/66a95ed79bb18584d8ea1b045e43a96ec4e80dfc
Cr-Commit-Position: refs/heads/master@{#441339}

Powered by Google App Engine
This is Rietveld 408576698