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

Unified Diff: content/shell/renderer/test_runner/WebTestThemeEngineMac.mm

Issue 177243021: [Mac] Remove NSApplication from the renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Defer FakeActiveWindow creation 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
« no previous file with comments | « content/renderer/renderer_main_platform_delegate_mac.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/test_runner/WebTestThemeEngineMac.mm
diff --git a/content/shell/renderer/test_runner/WebTestThemeEngineMac.mm b/content/shell/renderer/test_runner/WebTestThemeEngineMac.mm
index 8a26302835b2881aeb3923438c5871de2eee00e7..6a3cb70eadc667b12b343a12c66f598d4939962d 100644
--- a/content/shell/renderer/test_runner/WebTestThemeEngineMac.mm
+++ b/content/shell/renderer/test_runner/WebTestThemeEngineMac.mm
@@ -51,8 +51,12 @@ static NSWindow* alwaysInactiveWindow = nil;
- (id)initWithActiveControls:(BOOL)_hasActiveControls
{
- self = [super init];
- hasActiveControls = _hasActiveControls;
+ if ((self = [super initWithContentRect:NSMakeRect(0, 0, 100, 100)
+ styleMask:0
+ backing:NSBackingStoreBuffered
+ defer:YES])) {
+ hasActiveControls = _hasActiveControls;
+ }
return self;
}
« no previous file with comments | « content/renderer/renderer_main_platform_delegate_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698