Bug 937317 - Remove unnecessary AutoSystemCaller usage. r=bz

See bug 937317 comment 38.
This commit is contained in:
Bobby Holley 2013-12-11 17:51:58 -08:00
parent c2e3e33a71
commit 0443d74313
4 changed files with 0 additions and 27 deletions

View File

@ -54,7 +54,6 @@
#endif
using namespace mozilla;
using mozilla::dom::AutoSystemCaller;
#ifdef DEBUG_chb
static void PrintReqURL(imgIRequest* req) {
@ -1195,9 +1194,6 @@ nsImageLoadingContent::ClearPendingRequest(nsresult aReason,
if (!mPendingRequest)
return;
// See bug 604262.
AutoSystemCaller asc;
// Deregister this image from the refresh driver so it no longer receives
// notifications.
nsLayoutUtils::DeregisterImageRequest(GetFramePresContext(), mPendingRequest,
@ -1257,10 +1253,6 @@ nsImageLoadingContent::BindToTree(nsIDocument* aDocument, nsIContent* aParent,
if (!aDocument)
return;
// Make sure the callbacks triggered by the below code don't think they're
// being called from JS.
AutoSystemCaller asc;
TrackImage(mCurrentRequest);
TrackImage(mPendingRequest);
@ -1276,10 +1268,6 @@ nsImageLoadingContent::UnbindFromTree(bool aDeep, bool aNullParent)
if (!doc)
return;
// Make sure the callbacks triggered by the below code don't think they're
// being called from JS.
AutoSystemCaller asc;
UntrackImage(mCurrentRequest);
UntrackImage(mPendingRequest);

View File

@ -25,7 +25,6 @@
#include "mozilla/ClearOnShutdown.h"
#include "PCOMContentPermissionRequestChild.h"
#include "mozilla/dom/PermissionMessageUtils.h"
#include "mozilla/dom/ScriptSettings.h"
class nsIPrincipal;
@ -295,9 +294,6 @@ PositionError::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aScope)
void
PositionError::NotifyCallback(const GeoPositionErrorCallback& aCallback)
{
// We need to be system here. See bug 452762.
AutoSystemCaller asc;
nsAutoMicroTask mt;
if (aCallback.HasWebIDLCallback()) {
PositionErrorCallback* callback = aCallback.GetWebIDLCallback();
@ -529,8 +525,6 @@ nsGeolocationRequest::SendLocation(nsIDOMGeoPosition* aPosition)
Shutdown();
}
// We need to be system here. See bug 452762.
AutoSystemCaller asc;
nsAutoMicroTask mt;
if (mCallback.HasWebIDLCallback()) {
ErrorResult err;

View File

@ -73,7 +73,6 @@
#include "ActiveLayerTracker.h"
#include "mozilla/gfx/2D.h"
#include "mozilla/dom/ScriptSettings.h"
#include "mozilla/Preferences.h"
#ifdef MOZ_XUL
@ -4781,10 +4780,6 @@ nsLayoutUtils::SurfaceFromElement(nsIImageLoadingContent* aElement,
wantImageSurface = true;
}
// Force a system caller so that the below code doesn't think it's being
// called by JS. See bug 604262.
AutoSystemCaller asc;
nsCOMPtr<imgIRequest> imgRequest;
rv = aElement->GetRequest(nsIImageLoadingContent::CURRENT_REQUEST,
getter_AddRefs(imgRequest));

View File

@ -26,7 +26,6 @@
#include "ImageContainer.h"
#include "ImageLayers.h"
#include "nsContentList.h"
#include "mozilla/dom/ScriptSettings.h"
#include <algorithm>
using namespace mozilla;
@ -75,9 +74,6 @@ nsVideoFrame::CreateAnonymousContent(nsTArray<ContentInfo>& aElements)
mPosterImage = element;
NS_ENSURE_TRUE(mPosterImage, NS_ERROR_OUT_OF_MEMORY);
// See bug 604262.
AutoSystemCaller asc;
// Set the nsImageLoadingContent::ImageState() to 0. This means that the
// image will always report its state as 0, so it will never be reframed
// to show frames for loading or the broken image icon. This is important,