Bug 777292 - Switch incorrect nsresult to nsrefcnt; r=ehsan
authorAryeh Gregor <ayg@aryeh.name>
Fri, 27 Jul 2012 17:03:25 +0300
changeset 106861 ae22e27106b34397ba7e79ce61e6816ac3102955
parent 106860 f67184ee0f8bf3ac2da8337d6b404ac626a65beb
child 106862 090fd1585e341ccc0f18b02c809e066a61fe3e77
push id214
push userakeybl@mozilla.com
push dateWed, 14 Nov 2012 20:38:59 +0000
treeherdermozilla-release@c8b08ec8e1aa [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan
bugs777292
milestone17.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 777292 - Switch incorrect nsresult to nsrefcnt; r=ehsan
gfx/thebes/gfxASurface.h
--- a/gfx/thebes/gfxASurface.h
+++ b/gfx/thebes/gfxASurface.h
@@ -31,27 +31,27 @@ struct nsIntRect;
  */
 class THEBES_API gfxASurface {
 public:
 #ifdef MOZILLA_INTERNAL_API
     nsrefcnt AddRef(void);
     nsrefcnt Release(void);
 
     // These functions exist so that browsercomps can refcount a gfxASurface
-    virtual nsresult AddRefExternal(void)
+    virtual nsrefcnt AddRefExternal(void)
     {
       return AddRef();
     }
-    virtual nsresult ReleaseExternal(void)
+    virtual nsrefcnt ReleaseExternal(void)
     {
       return Release();
     }
 #else
-    virtual nsresult AddRef(void);
-    virtual nsresult Release(void);
+    virtual nsrefcnt AddRef(void);
+    virtual nsrefcnt Release(void);
 #endif
 
 public:
     /**
      * The format for an image surface. For all formats with alpha data, 0
      * means transparent, 1 or 255 means fully opaque.
      */
     typedef enum {