зеркало из https://github.com/mozilla/gecko-dev.git
Bug 448767 - Make -moz-system-metric(mac-graphite-theme) live, r+sr=roc
This commit is contained in:
Родитель
7d14ac6764
Коммит
681442ed36
|
@ -2248,6 +2248,10 @@ NSEvent* gLastDragEvent = nil;
|
|||
kCorePboardType_urld,
|
||||
kCorePboardType_urln,
|
||||
nil]];
|
||||
[[NSNotificationCenter defaultCenter] addObserver:self
|
||||
selector:@selector(controlTintChanged)
|
||||
name:NSControlTintDidChangeNotification
|
||||
object:nil];
|
||||
|
||||
return self;
|
||||
|
||||
|
@ -2267,6 +2271,8 @@ NSEvent* gLastDragEvent = nil;
|
|||
if (sLastViewEntered == self)
|
||||
sLastViewEntered = nil;
|
||||
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
||||
|
||||
[super dealloc];
|
||||
|
||||
// This sets the current port to _savePort.
|
||||
|
@ -2317,6 +2323,16 @@ NSEvent* gLastDragEvent = nil;
|
|||
}
|
||||
|
||||
|
||||
- (void)controlTintChanged
|
||||
{
|
||||
if (!mGeckoChild)
|
||||
return;
|
||||
|
||||
nsGUIEvent guiEvent(PR_TRUE, NS_THEMECHANGED, mGeckoChild);
|
||||
mGeckoChild->DispatchWindowEvent(guiEvent);
|
||||
}
|
||||
|
||||
|
||||
- (void)setNeedsPendingDisplay
|
||||
{
|
||||
NS_OBJC_BEGIN_TRY_ABORT_BLOCK;
|
||||
|
|
Загрузка…
Ссылка в новой задаче