Commit 1e99e51e authored by msw@chromium.org's avatar msw@chromium.org

Fix BubbleDelegateView call to DisableInactiveRendering.

Currently, when bubbles pop up, Chrome renders as inactive/'unfocused'.
Call DisableInactiveRendering on Widget::Show rather than Widget construction.

BUG=98312,98323
TEST=Showing bubbles doesn't make Chrome appear inactive/'unfocused'.

Review URL: http://codereview.chromium.org/8741011

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112304 0039d316-1c4b-4281-b951-d872f2087c98
parent 8c012045
......@@ -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) {
......
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