From b625fa977e4c2551c6168767cf9545d137533a81 Mon Sep 17 00:00:00 2001 From: Bob Owen Date: Thu, 7 Aug 2014 19:44:03 +0100 Subject: [PATCH] Bug 1047509 - Part 11: Remove nsCxPusher in nsPresContext::MediaFeatureValuesChanged. r=bholley --- layout/base/nsPresContext.cpp | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/layout/base/nsPresContext.cpp b/layout/base/nsPresContext.cpp index e8d52a7e2c5a..ab741c3dd398 100644 --- a/layout/base/nsPresContext.cpp +++ b/layout/base/nsPresContext.cpp @@ -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 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); } }