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

Unified Diff: ui/views/bubble/bubble_delegate.cc

Issue 8741011: Fix BubbleDelegateView call to DisableInactiveRendering. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/bubble/bubble_delegate.cc
diff --git a/ui/views/bubble/bubble_delegate.cc b/ui/views/bubble/bubble_delegate.cc
index 32124b25d7ce5f448e7b790dc7e968e992f07254..dc459d3be932c26ff96d6d48f4e560faeafe185f 100644
--- a/ui/views/bubble/bubble_delegate.cc
+++ b/ui/views/bubble/bubble_delegate.cc
@@ -121,8 +121,6 @@ Widget* BubbleDelegateView::CreateBubble(BubbleDelegateView* bubble_delegate) {
bubble_delegate->SizeToContents();
bubble_widget->AddObserver(bubble_delegate);
- if (parent && parent->GetTopLevelWidget())
- parent->GetTopLevelWidget()->DisableInactiveRendering();
return bubble_widget;
}
@@ -185,6 +183,9 @@ void BubbleDelegateView::Show() {
border_widget_->Show();
GetWidget()->Show();
GetFocusManager()->SetFocusedView(GetInitiallyFocusedView());
+ if (anchor_view() && anchor_view()->GetWidget() &&
+ anchor_view()->GetWidget()->GetTopLevelWidget())
+ anchor_view()->GetWidget()->GetTopLevelWidget()->DisableInactiveRendering();
}
void BubbleDelegateView::StartFade(bool fade_in) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698