Mac: Fix flash on resize (issue #1307)
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1748 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
60e3c9c090
commit
3a70815036
3
cef.gyp
3
cef.gyp
|
@ -1087,6 +1087,9 @@
|
||||||
'libcef/browser/menu_creator_runner_mac.mm',
|
'libcef/browser/menu_creator_runner_mac.mm',
|
||||||
# Include sources for printing.
|
# Include sources for printing.
|
||||||
'<(DEPTH)/chrome/renderer/printing/print_web_view_helper_mac.mm',
|
'<(DEPTH)/chrome/renderer/printing/print_web_view_helper_mac.mm',
|
||||||
|
# Include sources for CoreAnimation support.
|
||||||
|
'<(DEPTH)/chrome/browser/ui/cocoa/nsview_additions.h',
|
||||||
|
'<(DEPTH)/chrome/browser/ui/cocoa/nsview_additions.mm',
|
||||||
],
|
],
|
||||||
}],
|
}],
|
||||||
[ 'OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
|
[ 'OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
#include "base/strings/sys_string_conversions.h"
|
#include "base/strings/sys_string_conversions.h"
|
||||||
#include "base/strings/utf_string_conversions.h"
|
#include "base/strings/utf_string_conversions.h"
|
||||||
#include "base/threading/thread_restrictions.h"
|
#include "base/threading/thread_restrictions.h"
|
||||||
|
#import "chrome/browser/ui/cocoa/nsview_additions.h"
|
||||||
#include "content/public/browser/native_web_keyboard_event.h"
|
#include "content/public/browser/native_web_keyboard_event.h"
|
||||||
#include "content/public/browser/render_widget_host_view.h"
|
#include "content/public/browser/render_widget_host_view.h"
|
||||||
#include "content/public/browser/web_contents.h"
|
#include "content/public/browser/web_contents.h"
|
||||||
|
@ -327,6 +328,11 @@ bool CefBrowserHostImpl::PlatformCreateWindow() {
|
||||||
window_info_.parent_view = parentView;
|
window_info_.parent_view = parentView;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Make the content view for the window have a layer. This will make all
|
||||||
|
// sub-views have layers. This is necessary to ensure correct layer
|
||||||
|
// ordering of all child views and their layers.
|
||||||
|
[[[parentView window] contentView] cr_setWantsLayer:YES];
|
||||||
|
|
||||||
// Add a reference that will be released in the dealloc handler.
|
// Add a reference that will be released in the dealloc handler.
|
||||||
AddRef();
|
AddRef();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue