Bug 1047509 - Part 11: Remove nsCxPusher in nsPresContext::MediaFeatureValuesChanged. r=bholley

This commit is contained in:
Bob Owen 2014-08-07 19:44:03 +01:00
Родитель 0bf9b59587
Коммит b625fa977e
1 изменённых файлов: 4 добавлений и 11 удалений

Просмотреть файл

@ -62,7 +62,6 @@
#include "nsFrameLoader.h"
#include "nsContentUtils.h"
#include "nsCxPusher.h"
#include "nsPIWindowRoot.h"
#include "mozilla/Preferences.h"
@ -1931,17 +1930,11 @@ 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);
}
nsAutoMicroTask mt;
MediaQueryList::HandleChangeData &d = notifyList[i];
ErrorResult result;
d.callback->Call(*d.mql, result);
}
}