icecat: add release icecat-140.8.0-2gnu1 for ecne
This commit is contained in:
parent
450538011a
commit
8eb1f1732f
616 changed files with 39955 additions and 33937 deletions
|
|
@ -451,7 +451,7 @@ class nsCocoaWindow final : public nsBaseWidget {
|
|||
bool HasModalDescendants() const { return mNumModalDescendants > 0; }
|
||||
bool IsModal() const { return mModal; }
|
||||
|
||||
NSWindow* GetCocoaWindow() { return mWindow; }
|
||||
NSWindow* GetCocoaWindow() { return [[mWindow retain] autorelease]; }
|
||||
|
||||
void SetMenuBar(RefPtr<nsMenuBarX>&& aMenuBar);
|
||||
nsMenuBarX* GetMenuBar();
|
||||
|
|
@ -513,12 +513,7 @@ class nsCocoaWindow final : public nsBaseWidget {
|
|||
void UpdateFullscreenState(bool aFullScreen, bool aNativeMode);
|
||||
nsresult DoMakeFullScreen(bool aFullScreen, bool aUseSystemTransition);
|
||||
|
||||
already_AddRefed<nsIWidget> AllocateChildPopupWidget() override {
|
||||
return nsIWidget::CreateTopLevelWindow();
|
||||
}
|
||||
|
||||
BaseWindow* mWindow; // our cocoa window [STRONG]
|
||||
BaseWindow* mClosedRetainedWindow; // a second strong reference to our
|
||||
BaseWindow* mWindow; // our cocoa window [STRONG]
|
||||
// window upon closing it, held through our destructor. This is useful
|
||||
// to ensure that macOS run loops which reference the window will still
|
||||
// have something to point to even if they don't use proper retain and
|
||||
|
|
|
|||
|
|
@ -4429,7 +4429,6 @@ BOOL ChildViewMouseTracker::WindowAcceptsEvent(NSWindow* aWindow,
|
|||
|
||||
nsCocoaWindow::nsCocoaWindow()
|
||||
: mWindow(nil),
|
||||
mClosedRetainedWindow(nil),
|
||||
mDelegate(nil),
|
||||
mChildView(nil),
|
||||
mBackingScaleFactor(0.0),
|
||||
|
|
@ -4478,12 +4477,7 @@ void nsCocoaWindow::DestroyNativeWindow() {
|
|||
// sent to it after this object has been destroyed.
|
||||
mWindow.delegate = nil;
|
||||
|
||||
// Closing the window will also release it. Our second reference will
|
||||
// keep it alive through our destructor. Release any reference we might
|
||||
// have from an earlier call to DestroyNativeWindow, then create a new
|
||||
// one.
|
||||
[mClosedRetainedWindow autorelease];
|
||||
mClosedRetainedWindow = [mWindow retain];
|
||||
// Closing the window will also release it.
|
||||
MOZ_ASSERT(mWindow.releasedWhenClosed);
|
||||
[mWindow close];
|
||||
|
||||
|
|
@ -4502,10 +4496,9 @@ nsCocoaWindow::~nsCocoaWindow() {
|
|||
DestroyNativeWindow();
|
||||
}
|
||||
|
||||
[mClosedRetainedWindow release];
|
||||
|
||||
if (mContentLayer) {
|
||||
mNativeLayerRoot->RemoveLayer(mContentLayer); // safe if already removed
|
||||
// Our NativeLayerRoot must be empty before it is destructed.
|
||||
if (mNativeLayerRoot) {
|
||||
mNativeLayerRoot->SetLayers({});
|
||||
}
|
||||
|
||||
DestroyCompositor();
|
||||
|
|
@ -4894,11 +4887,11 @@ void* nsCocoaWindow::GetNativeData(uint32_t aDataType) {
|
|||
// to emulate how windows works, we always have to return a NSView
|
||||
// for NS_NATIVE_WIDGET
|
||||
case NS_NATIVE_WIDGET:
|
||||
retVal = mChildView;
|
||||
retVal = [[mChildView retain] autorelease];
|
||||
break;
|
||||
|
||||
case NS_NATIVE_WINDOW:
|
||||
retVal = mWindow;
|
||||
retVal = [[mWindow retain] autorelease];
|
||||
break;
|
||||
|
||||
case NS_NATIVE_GRAPHIC:
|
||||
|
|
@ -5889,16 +5882,22 @@ void nsCocoaWindow::ProcessTransitions() {
|
|||
// Run a local run loop until it is safe to start a native fullscreen
|
||||
// transition.
|
||||
NSRunLoop* localRunLoop = [NSRunLoop currentRunLoop];
|
||||
while (mWindow && !CanStartNativeTransition() &&
|
||||
|
||||
// Retain our initial mWindow so it doesn't change under us. We'll
|
||||
// release it after finishing the runloop.
|
||||
NSWindow* initialWindow = mWindow;
|
||||
[initialWindow retain];
|
||||
|
||||
while (!CanStartNativeTransition() &&
|
||||
[localRunLoop runMode:NSDefaultRunLoopMode
|
||||
beforeDate:[NSDate distantFuture]]) {
|
||||
// This loop continues to process events until
|
||||
// CanStartNativeTransition() returns true or our native
|
||||
// window has been destroyed.
|
||||
// CanStartNativeTransition() returns true.
|
||||
}
|
||||
|
||||
// This triggers an async animation, so continue.
|
||||
[mWindow toggleFullScreen:nil];
|
||||
[initialWindow toggleFullScreen:nil];
|
||||
[initialWindow release];
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
|
|
@ -5924,16 +5923,22 @@ void nsCocoaWindow::ProcessTransitions() {
|
|||
// Run a local run loop until it is safe to start a native
|
||||
// fullscreen transition.
|
||||
NSRunLoop* localRunLoop = [NSRunLoop currentRunLoop];
|
||||
while (mWindow && !CanStartNativeTransition() &&
|
||||
|
||||
// Retain our initial mWindow so it doesn't change under us. We'll
|
||||
// release it after finishing the runloop.
|
||||
NSWindow* initialWindow = mWindow;
|
||||
[initialWindow retain];
|
||||
|
||||
while (!CanStartNativeTransition() &&
|
||||
[localRunLoop runMode:NSDefaultRunLoopMode
|
||||
beforeDate:[NSDate distantFuture]]) {
|
||||
// This loop continues to process events until
|
||||
// CanStartNativeTransition() returns true or our native
|
||||
// window has been destroyed.
|
||||
// CanStartNativeTransition() returns true.
|
||||
}
|
||||
|
||||
// This triggers an async animation, so continue.
|
||||
[mWindow toggleFullScreen:nil];
|
||||
[initialWindow toggleFullScreen:nil];
|
||||
[initialWindow release];
|
||||
continue;
|
||||
} else {
|
||||
mSuppressSizeModeEvents = true;
|
||||
|
|
|
|||
|
|
@ -832,7 +832,7 @@ Maybe<nscolor> nsXPLookAndFeel::GenericDarkColor(ColorID aID) {
|
|||
case ColorID::Linktext:
|
||||
// If you change this color, you probably also want to change the default
|
||||
// value of browser.anchor_color.dark.
|
||||
color = NS_RGB(0x8c, 0x8c, 0xff);
|
||||
color = NS_RGB(0x00, 0xca, 0xdb);
|
||||
break;
|
||||
case ColorID::Activetext:
|
||||
case ColorID::SpellCheckerUnderline:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue