Merge pull request #1670 from joshaber/infer-textured

Use the textured window if it's transparent
This commit is contained in:
Cheng Zhao 2015-05-19 15:51:22 +08:00
commit ec5d05e226

View file

@ -315,7 +315,7 @@ NativeWindowMac::NativeWindowMac(content::WebContents* web_contents,
NSUInteger styleMask = NSTitledWindowMask | NSClosableWindowMask |
NSMiniaturizableWindowMask | NSResizableWindowMask;
if (!useStandardWindow) {
if (!useStandardWindow || transparent_ || !has_frame_) {
styleMask |= NSTexturedBackgroundWindowMask;
}