Commit cf9aa046 authored by avi@chromium.org's avatar avi@chromium.org

Zero-sized windows are bad. Don't.

BUG=78973
TEST=as in bug.

Review URL: http://codereview.chromium.org/7129048

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88638 0039d316-1c4b-4281-b951-d872f2087c98
parent f9d4943c
...@@ -352,7 +352,7 @@ void StatusBubbleMac::UpdateDownloadShelfVisibility(bool visible) { ...@@ -352,7 +352,7 @@ void StatusBubbleMac::UpdateDownloadShelfVisibility(bool visible) {
void StatusBubbleMac::Create() { void StatusBubbleMac::Create() {
DCHECK(!window_); DCHECK(!window_);
window_ = [[NSWindow alloc] initWithContentRect:NSZeroRect window_ = [[NSWindow alloc] initWithContentRect:NSMakeRect(0, 0, 1, 1)
styleMask:NSBorderlessWindowMask styleMask:NSBorderlessWindowMask
backing:NSBackingStoreBuffered backing:NSBackingStoreBuffered
defer:YES]; defer:YES];
...@@ -436,7 +436,7 @@ void StatusBubbleMac::SetState(StatusBubbleState state) { ...@@ -436,7 +436,7 @@ void StatusBubbleMac::SetState(StatusBubbleState state) {
return; return;
if (state == kBubbleHidden) if (state == kBubbleHidden)
[window_ setFrame:NSZeroRect display:YES]; [window_ setFrame:NSMakeRect(0, 0, 1, 1) display:YES];
if ([delegate_ respondsToSelector:@selector(statusBubbleWillEnterState:)]) if ([delegate_ respondsToSelector:@selector(statusBubbleWillEnterState:)])
[delegate_ statusBubbleWillEnterState:state]; [delegate_ statusBubbleWillEnterState:state];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment