Commit cb4d04d7 authored by ccameron's avatar ccameron Committed by Commit bot

Remove fade animation on tab-switch when using the 10.9 SDK

Add the usual implicit-animation supression system.

BUG=463988

Review URL: https://codereview.chromium.org/983523002

Cr-Commit-Position: refs/heads/master@{#319190}
parent 746f23b6
......@@ -829,6 +829,7 @@ RenderWidgetHost* RenderWidgetHostViewMac::GetRenderWidgetHost() const {
}
void RenderWidgetHostViewMac::Show() {
ScopedCAActionDisabler disabler;
[cocoa_view_ setHidden:NO];
if (!render_widget_host_->is_hidden())
return;
......@@ -842,6 +843,7 @@ void RenderWidgetHostViewMac::Show() {
}
void RenderWidgetHostViewMac::Hide() {
ScopedCAActionDisabler disabler;
[cocoa_view_ setHidden:YES];
WasOccluded();
DestroySuspendedBrowserCompositorViewIfNeeded();
......
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