Bug 921753 - Part 6: Define gfxPatternDrawable's destructor out of line; r=seth
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 15 Oct 2013 18:00:28 -0400
changeset 150839 c505616ed8a409abc0bae1e5f4d829f80d92b72e
parent 150828 a2e78dec2ccf750bc511d0b53d059bc35fcfdc06
child 150840 15e91a96d77d105afd200b0d9dc88752b72c8148
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersseth
bugs921753
milestone27.0a1
Bug 921753 - Part 6: Define gfxPatternDrawable's destructor out of line; r=seth
gfx/thebes/gfxDrawable.cpp
gfx/thebes/gfxDrawable.h
--- a/gfx/thebes/gfxDrawable.cpp
+++ b/gfx/thebes/gfxDrawable.cpp
@@ -183,16 +183,20 @@ gfxCallbackDrawable::Draw(gfxContext* aC
 
 gfxPatternDrawable::gfxPatternDrawable(gfxPattern* aPattern,
                                        const gfxIntSize aSize)
  : gfxDrawable(aSize)
  , mPattern(aPattern)
 {
 }
 
+gfxPatternDrawable::~gfxPatternDrawable()
+{
+}
+
 class DrawingCallbackFromDrawable : public gfxDrawingCallback {
 public:
     DrawingCallbackFromDrawable(gfxDrawable* aDrawable)
      : mDrawable(aDrawable) {
         NS_ASSERTION(aDrawable, "aDrawable is null!");
     }
 
     virtual ~DrawingCallbackFromDrawable() {}
--- a/gfx/thebes/gfxDrawable.h
+++ b/gfx/thebes/gfxDrawable.h
@@ -118,17 +118,17 @@ protected:
 /**
  * gfxPatternDrawable
  * A convenience implementation of gfxDrawable for patterns.
  */
 class gfxPatternDrawable : public gfxDrawable {
 public:
     gfxPatternDrawable(gfxPattern* aPattern,
                        const gfxIntSize aSize);
-    virtual ~gfxPatternDrawable() {}
+    virtual ~gfxPatternDrawable();
 
     virtual bool Draw(gfxContext* aContext,
                         const gfxRect& aFillRect,
                         bool aRepeat,
                         const GraphicsFilter& aFilter,
                         const gfxMatrix& aTransform = gfxMatrix());
 
 protected: