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

Issue 832873002: Animation: Remove ASSERT_NOT_REACHED from LengthStyleInterpolation (Closed)

Created:
5 years, 11 months ago by evemj (not active)
Modified:
5 years, 11 months ago
CC:
darktears, blink-reviews, blink-reviews-animation_chromium.org, Eric Willigers, Mike Lawther (Google), rjwright, shans, Steve Block, Timothy Loh
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Animation: Remove ASSERT_NOT_REACHED from LengthStyleInterpolation When interpolated, very large floating point numbers could be incorrectly evaluated to 0 causing an assert to be hit. This is an edge case so for now the assert has been removed and 0px is being returned instead. This needs to be fixed once we have multiple interpolators. BUG=445676, 445684, 446640, 445845, 445469 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=188013

Patch Set 1 #

Total comments: 6

Patch Set 2 : Leave ASSERT_NOT_REACHED in LengthStyleInterpolation.cpp #

Patch Set 3 : Add return 0px after ASSERT_NOT_REACHED() #

Total comments: 4

Patch Set 4 : Remove change to interpolableValue and add a TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M Source/core/animation/LengthStyleInterpolation.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 18 (4 generated)
evemj (not active)
5 years, 11 months ago (2015-01-02 05:21:59 UTC) #2
samli
lgtm
5 years, 11 months ago (2015-01-02 05:34:31 UTC) #3
jadeg
lgtm
5 years, 11 months ago (2015-01-04 22:39:54 UTC) #4
dstockwell
https://codereview.chromium.org/832873002/diff/1/Source/core/animation/LengthStyleInterpolation.cpp File Source/core/animation/LengthStyleInterpolation.cpp (left): https://codereview.chromium.org/832873002/diff/1/Source/core/animation/LengthStyleInterpolation.cpp#oldcode98 Source/core/animation/LengthStyleInterpolation.cpp:98: ASSERT_NOT_REACHED(); Shouldn't we leave the ASSERT_NOT_REACHED here? https://codereview.chromium.org/832873002/diff/1/Source/core/animation/LengthStyleInterpolation.cpp#oldcode98 Source/core/animation/LengthStyleInterpolation.cpp:98: ...
5 years, 11 months ago (2015-01-04 23:54:16 UTC) #5
evemj (not active)
https://codereview.chromium.org/832873002/diff/1/Source/core/animation/LengthStyleInterpolation.cpp File Source/core/animation/LengthStyleInterpolation.cpp (left): https://codereview.chromium.org/832873002/diff/1/Source/core/animation/LengthStyleInterpolation.cpp#oldcode98 Source/core/animation/LengthStyleInterpolation.cpp:98: ASSERT_NOT_REACHED(); On 2015/01/04 23:54:16, dstockwell wrote: > Shouldn't we ...
5 years, 11 months ago (2015-01-05 02:28:48 UTC) #7
Eric Willigers
https://codereview.chromium.org/832873002/diff/1/Source/core/animation/LengthStyleInterpolation.cpp File Source/core/animation/LengthStyleInterpolation.cpp (left): https://codereview.chromium.org/832873002/diff/1/Source/core/animation/LengthStyleInterpolation.cpp#oldcode98 Source/core/animation/LengthStyleInterpolation.cpp:98: ASSERT_NOT_REACHED(); On 2015/01/05 02:28:47, evem1 wrote: > On 2015/01/04 ...
5 years, 11 months ago (2015-01-05 02:32:22 UTC) #8
dstockwell
On 2015/01/05 at 02:32:22, ericwilligers wrote: > https://codereview.chromium.org/832873002/diff/1/Source/core/animation/LengthStyleInterpolation.cpp > File Source/core/animation/LengthStyleInterpolation.cpp (left): > > https://codereview.chromium.org/832873002/diff/1/Source/core/animation/LengthStyleInterpolation.cpp#oldcode98 ...
5 years, 11 months ago (2015-01-05 02:41:10 UTC) #9
evemj (not active)
https://codereview.chromium.org/832873002/diff/1/Source/core/animation/LengthStyleInterpolation.cpp File Source/core/animation/LengthStyleInterpolation.cpp (left): https://codereview.chromium.org/832873002/diff/1/Source/core/animation/LengthStyleInterpolation.cpp#oldcode98 Source/core/animation/LengthStyleInterpolation.cpp:98: ASSERT_NOT_REACHED(); On 2015/01/05 02:32:22, Eric Willigers wrote: > On ...
5 years, 11 months ago (2015-01-05 04:36:58 UTC) #10
Eric Willigers
lgtm
5 years, 11 months ago (2015-01-05 04:40:28 UTC) #11
shans
https://codereview.chromium.org/832873002/diff/60001/Source/core/animation/InterpolableValue.cpp File Source/core/animation/InterpolableValue.cpp (right): https://codereview.chromium.org/832873002/diff/60001/Source/core/animation/InterpolableValue.cpp#newcode22 Source/core/animation/InterpolableValue.cpp:22: resultNumber.m_value = m_value + (toNumber.m_value - m_value) * progress; ...
5 years, 11 months ago (2015-01-07 23:07:49 UTC) #13
evemj (not active)
https://codereview.chromium.org/832873002/diff/60001/Source/core/animation/InterpolableValue.cpp File Source/core/animation/InterpolableValue.cpp (right): https://codereview.chromium.org/832873002/diff/60001/Source/core/animation/InterpolableValue.cpp#newcode22 Source/core/animation/InterpolableValue.cpp:22: resultNumber.m_value = m_value + (toNumber.m_value - m_value) * progress; ...
5 years, 11 months ago (2015-01-07 23:28:03 UTC) #14
shans
lgtm
5 years, 11 months ago (2015-01-07 23:54:14 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/832873002/80001
5 years, 11 months ago (2015-01-07 23:55:31 UTC) #17
commit-bot: I haz the power
5 years, 11 months ago (2015-01-08 00:49:48 UTC) #18
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=188013

Powered by Google App Engine
This is Rietveld 408576698