| Index: ui/views/animation/ink_drop_highlight.cc
|
| diff --git a/ui/views/animation/ink_drop_highlight.cc b/ui/views/animation/ink_drop_highlight.cc
|
| index 83303bbcaa403e219e7221087ecfb328045dc8e6..12202a26fce3e38eaa938559723ce283cba299f8 100644
|
| --- a/ui/views/animation/ink_drop_highlight.cc
|
| +++ b/ui/views/animation/ink_drop_highlight.cc
|
| @@ -9,7 +9,6 @@
|
| #include "ui/compositor/layer.h"
|
| #include "ui/compositor/layer_animation_sequence.h"
|
| #include "ui/compositor/scoped_layer_animation_settings.h"
|
| -#include "ui/gfx/animation/animation.h"
|
| #include "ui/gfx/geometry/insets.h"
|
| #include "ui/views/animation/ink_drop_highlight_observer.h"
|
| #include "ui/views/animation/ink_drop_painted_layer_delegates.h"
|
| @@ -95,11 +94,6 @@
|
| const base::TimeDelta& duration,
|
| const gfx::Size& initial_size,
|
| const gfx::Size& target_size) {
|
| - // Ink drop animations are controlled by the system animation settings for
|
| - // accessibility reasons."See https://crbug.com/658384.
|
| - const base::TimeDelta effective_duration =
|
| - gfx::Animation::ShouldRenderRichAnimation() ? duration
|
| - : base::TimeDelta();
|
| last_animation_initiated_was_fade_in_ = animation_type == FADE_IN;
|
|
|
| layer_->SetTransform(CalculateTransform(initial_size));
|
| @@ -122,7 +116,7 @@
|
| ui::LayerAnimationElement* opacity_element =
|
| ui::LayerAnimationElement::CreateOpacityElement(
|
| animation_type == FADE_IN ? visible_opacity_ : kHiddenOpacity,
|
| - effective_duration);
|
| + duration);
|
| ui::LayerAnimationSequence* opacity_sequence =
|
| new ui::LayerAnimationSequence(opacity_element);
|
| opacity_sequence->AddObserver(animation_observer);
|
| @@ -131,7 +125,7 @@
|
| if (initial_size != target_size) {
|
| ui::LayerAnimationElement* transform_element =
|
| ui::LayerAnimationElement::CreateTransformElement(
|
| - CalculateTransform(target_size), effective_duration);
|
| + CalculateTransform(target_size), duration);
|
| ui::LayerAnimationSequence* transform_sequence =
|
| new ui::LayerAnimationSequence(transform_element);
|
| transform_sequence->AddObserver(animation_observer);
|
|
|