Fixed a DOM protection issue in CPWindow.

Reviewed by me.
This commit is contained in:
Francisco Ryan Tolmasky I committed 2009-01-23 09:59:29 -08:00
1 parent d28bfee704
commit 90389996d1
1 file changed
+4
+4
View File
@@ -316,7 +316,11 @@ CPTexturedBackgroundWindowMask
*/
- (id)initWithContentRect:(CGRect)aContentRect styleMask:(unsigned int)aStyleMask
{
#if PLATFORM(DOM)
return [self initWithContentRect:aContentRect styleMask:aStyleMask bridge:[CPDOMWindowBridge sharedDOMWindowBridge]];
#else
return [self initWithContentRect:aContentRect styleMask:aStyleMask bridge:nil];
#endif
}
/*!