mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1027251 - Fix or whitelist dangerous public destructors in image/ - r=jrmuizel
This commit is contained in:
parent
96b29e0856
commit
b4866abdf9
@ -15,6 +15,17 @@
|
||||
#include "mozilla/Telemetry.h"
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
namespace image {
|
||||
class Decoder;
|
||||
}
|
||||
|
||||
template<>
|
||||
struct HasDangerousPublicDestructor<image::Decoder>
|
||||
{
|
||||
static const bool value = true;
|
||||
};
|
||||
|
||||
namespace image {
|
||||
|
||||
class Decoder
|
||||
|
@ -138,10 +138,10 @@ private:
|
||||
*/
|
||||
class FrameSequence
|
||||
{
|
||||
public:
|
||||
|
||||
~FrameSequence();
|
||||
|
||||
public:
|
||||
|
||||
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(FrameSequence)
|
||||
|
||||
/**
|
||||
|
@ -35,7 +35,7 @@ public:
|
||||
aURI->GetRef(mRef);
|
||||
}
|
||||
|
||||
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(mozilla::image::ImageURL)
|
||||
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(ImageURL)
|
||||
|
||||
nsresult GetSpec(nsACString &result) {
|
||||
result = mSpec;
|
||||
@ -78,6 +78,8 @@ private:
|
||||
nsAutoCString mSpec;
|
||||
nsAutoCString mScheme;
|
||||
nsAutoCString mRef;
|
||||
|
||||
~ImageURL() {}
|
||||
};
|
||||
|
||||
} // namespace image
|
||||
|
@ -390,6 +390,9 @@ private:
|
||||
/* True if a new frame has been allocated, but DecodeSomeData hasn't yet
|
||||
* been called to flush data to it */
|
||||
bool mAllocatedNewFrame;
|
||||
|
||||
private:
|
||||
~DecodeRequest() {}
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -111,6 +111,7 @@ private:
|
||||
*/
|
||||
class CachedSurface
|
||||
{
|
||||
~CachedSurface() {}
|
||||
public:
|
||||
NS_INLINE_DECL_REFCOUNTING(CachedSurface)
|
||||
|
||||
@ -158,6 +159,7 @@ private:
|
||||
*/
|
||||
class ImageSurfaceCache
|
||||
{
|
||||
~ImageSurfaceCache() {}
|
||||
public:
|
||||
NS_INLINE_DECL_REFCOUNTING(ImageSurfaceCache)
|
||||
|
||||
|
@ -108,6 +108,8 @@ enum {
|
||||
|
||||
class imgStatusTracker : public mozilla::SupportsWeakPtr<imgStatusTracker>
|
||||
{
|
||||
virtual ~imgStatusTracker();
|
||||
|
||||
public:
|
||||
MOZ_DECLARE_REFCOUNTED_TYPENAME(imgStatusTracker)
|
||||
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(imgStatusTracker)
|
||||
@ -116,7 +118,6 @@ public:
|
||||
// imgRequestProxys in SyncNotify() and EmulateRequestFinished(), and must be
|
||||
// alive as long as this instance is, because we hold a weak reference to it.
|
||||
imgStatusTracker(mozilla::image::Image* aImage);
|
||||
virtual ~imgStatusTracker();
|
||||
|
||||
// Image-setter, for imgStatusTrackers created by imgRequest::Init, which
|
||||
// are created before their Image is created. This method should only
|
||||
|
Loading…
Reference in New Issue
Block a user