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

Unified Diff: chrome/browser/ui/cocoa/browser_window_controller.mm

Issue 171973004: NSView cleanup for CoreAnimation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 months 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
Index: chrome/browser/ui/cocoa/browser_window_controller.mm
diff --git a/chrome/browser/ui/cocoa/browser_window_controller.mm b/chrome/browser/ui/cocoa/browser_window_controller.mm
index 3f2595b2d593f6b3fe9bb10e34ba92721e85a3fb..23be0fd35c3713cb0c4e8563d355e73e6dcda72c 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller.mm
+++ b/chrome/browser/ui/cocoa/browser_window_controller.mm
@@ -975,10 +975,7 @@ enum {
return;
// Disable screen updates to prevent flickering.
- if (view == [bookmarkBarController_ view] ||
- view == [downloadShelfController_ view]) {
- [[self window] disableScreenUpdatesUntilFlush];
- }
+ gfx::ScopedNSDisableScreenUpdates disabler;
// Grow or shrink the window by the amount of the height change. We adjust
// the window height only in two cases:
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/dev_tools_controller.mm » ('j') | chrome/browser/ui/cocoa/dev_tools_controller.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698