| Index: chrome/browser/ui/views/bar_control_button.cc
|
| diff --git a/chrome/browser/ui/views/bar_control_button.cc b/chrome/browser/ui/views/bar_control_button.cc
|
| index e8c727c66dc22c4035a2795bba662a6849b70496..6eb966be892f383899074e4fa5e3c05ea4e0a2e5 100644
|
| --- a/chrome/browser/ui/views/bar_control_button.cc
|
| +++ b/chrome/browser/ui/views/bar_control_button.cc
|
| @@ -66,8 +66,7 @@ void BarControlButton::OnNativeThemeChanged(const ui::NativeTheme* theme) {
|
| void BarControlButton::Layout() {
|
| ImageButton::Layout();
|
|
|
| - ink_drop_animation_controller_->SetInkDropCenter(
|
| - GetLocalBounds().CenterPoint());
|
| + ink_drop_animation_controller_->SetInkDropCenter(CalculateInkDropCenter());
|
| }
|
|
|
| void BarControlButton::AddInkDropLayer(ui::Layer* ink_drop_layer) {
|
| @@ -85,6 +84,10 @@ void BarControlButton::RemoveInkDropLayer(ui::Layer* ink_drop_layer) {
|
| SetPaintToLayer(false);
|
| }
|
|
|
| +gfx::Point BarControlButton::CalculateInkDropCenter() const {
|
| + return GetLocalBounds().CenterPoint();
|
| +}
|
| +
|
| bool BarControlButton::OnMousePressed(const ui::MouseEvent& event) {
|
| if (IsTriggerableEvent(event)) {
|
| ink_drop_animation_controller_->AnimateToState(
|
|
|