Fix flashing in WebContents we create
If the embedding app creates them it's up to them to fix this.
This commit is contained in:
parent
8ae459e9fa
commit
6b9e61c65d
1 changed files with 9 additions and 1 deletions
|
@ -2,10 +2,18 @@
|
|||
|
||||
#include "browser/inspectable_web_contents_impl.h"
|
||||
|
||||
#include "content/public/browser/web_contents_view.h"
|
||||
|
||||
namespace brightray {
|
||||
|
||||
InspectableWebContents* InspectableWebContents::Create(const content::WebContents::CreateParams& create_params) {
|
||||
return Create(content::WebContents::Create(create_params));
|
||||
auto contents = content::WebContents::Create(create_params);
|
||||
#if defined(OS_MACOSX)
|
||||
// Work around http://crbug.com/279472.
|
||||
contents->GetView()->SetAllowOverlappingViews(true);
|
||||
#endif
|
||||
|
||||
return Create(contents);
|
||||
}
|
||||
|
||||
InspectableWebContents* InspectableWebContents::Create(content::WebContents* web_contents) {
|
||||
|
|
Loading…
Reference in a new issue