Bug 908778 - Don't #include gfxASurface.h in nsIFrame.h; r=mats

This commit is contained in:
Ehsan Akhgari 2013-08-23 18:16:16 -04:00
parent 2d782339fa
commit 1b1e8f296f
2 changed files with 8 additions and 5 deletions

View File

@ -74,6 +74,7 @@
#include "nsRenderingContext.h"
#include "nsAbsoluteContainingBlock.h"
#include "nsFontInflationData.h"
#include "gfxASurface.h"
#include "mozilla/Preferences.h"
#include "mozilla/LookAndFeel.h"
@ -8120,6 +8121,12 @@ nsIFrame::IsSelected() const
IsFrameSelected() : false;
}
void
nsIFrame::DestroySurface(void* aPropertyValue)
{
static_cast<gfxASurface*>(aPropertyValue)->Release();
}
// Box layout debugging
#ifdef DEBUG_REFLOW
int32_t gIndent2 = 0;

View File

@ -36,7 +36,6 @@
#include <algorithm>
#include "nsITheme.h"
#include "gfx3DMatrix.h"
#include "gfxASurface.h"
#ifdef ACCESSIBILITY
#include "mozilla/a11y/AccTypes.h"
@ -893,10 +892,7 @@ public:
delete static_cast<nsOverflowAreas*>(aPropertyValue);
}
static void DestroySurface(void* aPropertyValue)
{
static_cast<gfxASurface*>(aPropertyValue)->Release();
}
static void DestroySurface(void* aPropertyValue);
#ifdef _MSC_VER
// XXX Workaround MSVC issue by making the static FramePropertyDescriptor