mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 937317 - Remove unnecessary AutoSystemCaller usage. r=bz
See bug 937317 comment 38.
This commit is contained in:
parent
9fc70d3f91
commit
90515368c6
@ -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);
|
||||
|
||||
|
@ -24,7 +24,6 @@
|
||||
#include "mozilla/ClearOnShutdown.h"
|
||||
#include "PCOMContentPermissionRequestChild.h"
|
||||
#include "mozilla/dom/PermissionMessageUtils.h"
|
||||
#include "mozilla/dom/ScriptSettings.h"
|
||||
|
||||
class nsIPrincipal;
|
||||
|
||||
@ -294,9 +293,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();
|
||||
@ -528,8 +524,6 @@ nsGeolocationRequest::SendLocation(nsIDOMGeoPosition* aPosition)
|
||||
Shutdown();
|
||||
}
|
||||
|
||||
// We need to be system here. See bug 452762.
|
||||
AutoSystemCaller asc;
|
||||
nsAutoMicroTask mt;
|
||||
if (mCallback.HasWebIDLCallback()) {
|
||||
ErrorResult err;
|
||||
|
@ -72,7 +72,6 @@
|
||||
#include "nsComputedDOMStyle.h"
|
||||
#include "ActiveLayerTracker.h"
|
||||
|
||||
#include "mozilla/dom/ScriptSettings.h"
|
||||
#include "mozilla/Preferences.h"
|
||||
|
||||
#ifdef MOZ_XUL
|
||||
@ -4775,10 +4774,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));
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user