mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 816374 - Don't export RasterImage from imagelib. r=joe
This commit is contained in:
parent
3e4a4a7a65
commit
581f4c8fce
@ -28,11 +28,6 @@
|
||||
#include "nsBMPEncoder.h"
|
||||
|
||||
// objects that just require generic constructors
|
||||
namespace mozilla {
|
||||
namespace image {
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(RasterImage)
|
||||
}
|
||||
}
|
||||
using namespace mozilla::image;
|
||||
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(imgLoader, Init)
|
||||
@ -45,7 +40,6 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(nsBMPEncoder)
|
||||
NS_DEFINE_NAMED_CID(NS_IMGLOADER_CID);
|
||||
NS_DEFINE_NAMED_CID(NS_IMGREQUESTPROXY_CID);
|
||||
NS_DEFINE_NAMED_CID(NS_IMGTOOLS_CID);
|
||||
NS_DEFINE_NAMED_CID(NS_RASTERIMAGE_CID);
|
||||
NS_DEFINE_NAMED_CID(NS_ICOENCODER_CID);
|
||||
NS_DEFINE_NAMED_CID(NS_JPEGENCODER_CID);
|
||||
NS_DEFINE_NAMED_CID(NS_PNGENCODER_CID);
|
||||
@ -55,7 +49,6 @@ static const mozilla::Module::CIDEntry kImageCIDs[] = {
|
||||
{ &kNS_IMGLOADER_CID, false, NULL, imgLoaderConstructor, },
|
||||
{ &kNS_IMGREQUESTPROXY_CID, false, NULL, imgRequestProxyConstructor, },
|
||||
{ &kNS_IMGTOOLS_CID, false, NULL, imgToolsConstructor, },
|
||||
{ &kNS_RASTERIMAGE_CID, false, NULL, RasterImageConstructor, },
|
||||
{ &kNS_ICOENCODER_CID, false, NULL, nsICOEncoderConstructor, },
|
||||
{ &kNS_JPEGENCODER_CID, false, NULL, nsJPEGEncoderConstructor, },
|
||||
{ &kNS_PNGENCODER_CID, false, NULL, nsPNGEncoderConstructor, },
|
||||
@ -68,7 +61,6 @@ static const mozilla::Module::ContractIDEntry kImageContracts[] = {
|
||||
{ "@mozilla.org/image/loader;1", &kNS_IMGLOADER_CID },
|
||||
{ "@mozilla.org/image/request;1", &kNS_IMGREQUESTPROXY_CID },
|
||||
{ "@mozilla.org/image/tools;1", &kNS_IMGTOOLS_CID },
|
||||
{ "@mozilla.org/image/rasterimage;1", &kNS_RASTERIMAGE_CID },
|
||||
{ "@mozilla.org/image/encoder;2?type=image/vnd.microsoft.icon", &kNS_ICOENCODER_CID },
|
||||
{ "@mozilla.org/image/encoder;2?type=image/jpeg", &kNS_JPEGENCODER_CID },
|
||||
{ "@mozilla.org/image/encoder;2?type=image/png", &kNS_PNGENCODER_CID },
|
||||
|
@ -153,10 +153,7 @@ public:
|
||||
NS_DECL_IMGICONTAINERDEBUG
|
||||
#endif
|
||||
|
||||
// XXX(seth) Currently the constructor is required to be public because it's
|
||||
// exposed as part of the image module and imgTools needs it. New code should
|
||||
// create images using ImageFactory.
|
||||
RasterImage(imgStatusTracker* aStatusTracker = nullptr);
|
||||
// (no public constructor - use ImageFactory)
|
||||
virtual ~RasterImage();
|
||||
|
||||
virtual nsresult StartAnimation();
|
||||
@ -736,6 +733,8 @@ private: // data
|
||||
bool StoringSourceData() const;
|
||||
|
||||
protected:
|
||||
RasterImage(imgStatusTracker* aStatusTracker = nullptr);
|
||||
|
||||
bool ShouldAnimate();
|
||||
|
||||
friend class ImageFactory;
|
||||
|
Loading…
Reference in New Issue
Block a user