Bug 821448. Make a bunch of imagelib classes builtinclass. r=joe
authorJeff Muizelaar <jmuizelaar@mozilla.com>
Fri, 14 Dec 2012 14:42:36 -0500
changeset 125232 c668a20b6b593455900311a4428b5a72d5bcd9ba
parent 125231 e890c72966107ff0aca998d938ccaf914c937c8f
child 125233 f2d9eaf13c19090c11441ae2db658e328257cb14
push id2151
push userlsblakk@mozilla.com
push dateTue, 19 Feb 2013 18:06:57 +0000
treeherdermozilla-beta@4952e88741ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjoe
bugs821448
milestone20.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 821448. Make a bunch of imagelib classes builtinclass. r=joe We don't want script implementing these.
image/public/imgICache.idl
image/public/imgIContainer.idl
image/public/imgIContainerDebug.idl
image/public/imgILoader.idl
image/public/imgIRequest.idl
image/public/imgITools.idl
--- a/image/public/imgICache.idl
+++ b/image/public/imgICache.idl
@@ -12,17 +12,17 @@ interface nsIProperties;
 
 /**
  * imgICache interface
  *
  * @author Stuart Parmenter <pavlov@netscape.com>
  * @version 0.1
  * @see imagelib2
  */
-[scriptable, uuid(b06e0fa5-d6e2-4fa3-8fc0-7775aed96522)]
+[scriptable, builtinclass, uuid(b06e0fa5-d6e2-4fa3-8fc0-7775aed96522)]
 interface imgICache : nsISupports
 {
   /**
    * Evict images from the cache.
    *
    * @param chrome If TRUE,  evict only chrome images.
    *               If FALSE, evict everything except chrome images.
    */
--- a/image/public/imgIContainer.idl
+++ b/image/public/imgIContainer.idl
@@ -52,17 +52,17 @@ native gfxGraphicsFilter(gfxPattern::Gra
 /**
  * imgIContainer is the interface that represents an image. It allows
  * access to frames as Thebes surfaces, and permits users to extract subregions
  * as other imgIContainers. It also allows drawing of images on to Thebes
  * contexts.
  *
  * Internally, imgIContainer also manages animation of images.
  */
-[scriptable, uuid(01e12ac9-7d9f-40d9-9ec1-70b64c53ce7a)]
+[scriptable, builtinclass, uuid(01e12ac9-7d9f-40d9-9ec1-70b64c53ce7a)]
 interface imgIContainer : nsISupports
 {
   /**
    * The width of the container rectangle.  In the case of any error,
    * zero is returned, and an exception will be thrown.
    */
   readonly attribute int32_t width;
 
--- a/image/public/imgIContainerDebug.idl
+++ b/image/public/imgIContainerDebug.idl
@@ -7,17 +7,17 @@
 #include "nsISupports.idl"
 
 /**
  * This interface is used in debug builds (and only there) in
  * order to let automatic tests running JavaScript access
  * internal state of imgContainers. This lets us test
  * things like animation.
  */
-[scriptable, uuid(52cbb839-6e63-4a70-b21a-1db4ca706c49)]
+[scriptable, builtinclass, uuid(52cbb839-6e63-4a70-b21a-1db4ca706c49)]
 interface imgIContainerDebug : nsISupports
 {
   /**
    * The # of frames this imgContainer has been notified about.
    * That is equal to the # of times the animation timer has
    * fired, and is usually equal to the # of frames actually
    * drawn (but actual drawing might be disabled).
    */
--- a/image/public/imgILoader.idl
+++ b/image/public/imgILoader.idl
@@ -22,17 +22,17 @@ interface nsIChannelPolicy;
 
 /**
  * imgILoader interface
  *
  * @author Stuart Parmenter <pavlov@netscape.com>
  * @version 0.3
  * @see imagelib2
  */
-[scriptable, uuid(278c4c8e-934f-4364-b49b-081cd8b1d595)]
+[scriptable, builtinclass, uuid(278c4c8e-934f-4364-b49b-081cd8b1d595)]
 interface imgILoader : nsISupports
 {
   // Extra flags to pass to loadImage if you want a load to use CORS
   // validation.
   const unsigned long LOAD_CORS_ANONYMOUS = 1 << 16;
   const unsigned long LOAD_CORS_USE_CREDENTIALS = 1 << 17;
 
   /**
--- a/image/public/imgIRequest.idl
+++ b/image/public/imgIRequest.idl
@@ -14,17 +14,17 @@ interface nsIPrincipal;
 
 /**
  * imgIRequest interface
  *
  * @author Stuart Parmenter <stuart@mozilla.com>
  * @version 0.1
  * @see imagelib2
  */
-[scriptable, uuid(3ea9fc87-2e97-45bf-b373-d1dd253a0b5e)]
+[scriptable, builtinclass, uuid(3ea9fc87-2e97-45bf-b373-d1dd253a0b5e)]
 interface imgIRequest : nsIRequest
 {
   /**
    * the image container...
    * @return the image object associated with the request.
    * @attention NEED DOCS
    */
   readonly attribute imgIContainer image;
--- a/image/public/imgITools.idl
+++ b/image/public/imgITools.idl
@@ -9,17 +9,17 @@
 interface nsIInputStream;
 interface imgIContainer;
 interface imgILoader;
 interface imgICache;
 interface nsIDOMDocument;
 interface imgIScriptedNotificationObserver;
 interface imgINotificationObserver;
 
-[scriptable, uuid(98bd5bf9-87eb-4d92-81b1-4cd10c64f7b2)]
+[scriptable, builtinclass, uuid(98bd5bf9-87eb-4d92-81b1-4cd10c64f7b2)]
 interface imgITools : nsISupports
 {
     /**
      * decodeImageData
      * Caller provides an input stream and mimetype. We read from the stream
      * and decompress it (according to the specified mime type) and return
      * the resulting imgIContainer. (If the caller already has a container,
      * it can be provided as input to be reused).