зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1047509 - Part 11: Remove nsCxPusher in nsPresContext::MediaFeatureValuesChanged. r=bholley
This commit is contained in:
Родитель
0bf9b59587
Коммит
b625fa977e
|
@ -62,7 +62,6 @@
|
|||
#include "nsFrameLoader.h"
|
||||
|
||||
#include "nsContentUtils.h"
|
||||
#include "nsCxPusher.h"
|
||||
#include "nsPIWindowRoot.h"
|
||||
#include "mozilla/Preferences.h"
|
||||
|
||||
|
@ -1931,19 +1930,13 @@ nsPresContext::MediaFeatureValuesChanged(StyleRebuildType aShouldRebuild,
|
|||
}
|
||||
|
||||
if (!notifyList.IsEmpty()) {
|
||||
nsPIDOMWindow *win = mDocument->GetInnerWindow();
|
||||
nsCOMPtr<EventTarget> et = do_QueryInterface(win);
|
||||
nsCxPusher pusher;
|
||||
|
||||
for (uint32_t i = 0, i_end = notifyList.Length(); i != i_end; ++i) {
|
||||
if (pusher.RePush(et)) {
|
||||
nsAutoMicroTask mt;
|
||||
MediaQueryList::HandleChangeData &d = notifyList[i];
|
||||
ErrorResult result;
|
||||
d.callback->Call(*d.mql, result);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// NOTE: When |notifyList| goes out of scope, our destructor could run.
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче