DescriptionReplacing raw pointer to LayerAnimator with scoped_refptr in ScopedLayerAnimationSettings.
The raw pointer can cause issues: if the ScopedLayerAnimationSettings object survives the
respective LayerAnimator object, a seg fault occurs when ScopedLayerAnimationSettings is deleted.
This is particularly problematic when the animation in question has a 0 duration (which can be
the case for unit tests). When animation's duration is 0, the Animator gets deleted right away,
by the same setter that starts the animation.
BUG=
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255482
Patch Set 1 #Patch Set 2 : Re-uploading same changes. #Patch Set 3 : Adding a unit test. #
Messages
Total messages: 18 (0 generated)
|