Commit 0a6f1d61 authored by siyua's avatar siyua Committed by Commit Bot

[Upstream Feedback] BugFix: Disable loading indicator

So that icon will not be highlighted if icon is hovered when animation
is showing

Bug: 932818
Change-Id: I2b894b48bcad73fb89739e3a551b1390e980f7ea
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1872729Reviewed-by: default avatarPeter Boström <pbos@chromium.org>
Commit-Queue: Siyu An <siyua@chromium.org>
Cr-Commit-Position: refs/heads/master@{#708447}
parent b225359b
...@@ -17,6 +17,8 @@ PageActionIconLoadingIndicatorView::PageActionIconLoadingIndicatorView( ...@@ -17,6 +17,8 @@ PageActionIconLoadingIndicatorView::PageActionIconLoadingIndicatorView(
PageActionIconView* parent) PageActionIconView* parent)
: parent_(parent) { : parent_(parent) {
parent_->AddObserver(this); parent_->AddObserver(this);
// Don't let the loading indicator process events.
set_can_process_events_within_subtree(false);
} }
PageActionIconLoadingIndicatorView::~PageActionIconLoadingIndicatorView() { PageActionIconLoadingIndicatorView::~PageActionIconLoadingIndicatorView() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment