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

This commit is contained in:
Ehsan Akhgari 2013-08-23 18:16:38 -04:00
parent 1b1e8f296f
commit 9b11a89362
5 changed files with 11 additions and 5 deletions

View File

@ -9,6 +9,7 @@
#include "nsPresContext.h"
#include "nsCSSRendering.h"
#include "nsLayoutUtils.h"
#include "nsRegion.h"
namespace mozilla {

View File

@ -11,6 +11,7 @@
#include "nsEventListenerManager.h"
#include "nsPrintfCString.h"
#include "mozilla/dom/Element.h"
#include "nsRegion.h"
#include <algorithm>
namespace mozilla {

View File

@ -75,6 +75,7 @@
#include "nsAbsoluteContainingBlock.h"
#include "nsFontInflationData.h"
#include "gfxASurface.h"
#include "nsRegion.h"
#include "mozilla/Preferences.h"
#include "mozilla/LookAndFeel.h"
@ -8127,6 +8128,12 @@ nsIFrame::DestroySurface(void* aPropertyValue)
static_cast<gfxASurface*>(aPropertyValue)->Release();
}
void
nsIFrame::DestroyRegion(void* aPropertyValue)
{
delete static_cast<nsRegion*>(aPropertyValue);
}
// Box layout debugging
#ifdef DEBUG_REFLOW
int32_t gIndent2 = 0;

View File

@ -22,7 +22,6 @@
#include <stdio.h>
#include "nsQueryFrame.h"
#include "nsRegion.h"
#include "nsStyleContext.h"
#include "nsStyleStruct.h"
#include "nsStyleStructFwd.h"
@ -867,10 +866,7 @@ public:
: GetPosition();
}
static void DestroyRegion(void* aPropertyValue)
{
delete static_cast<nsRegion*>(aPropertyValue);
}
static void DestroyRegion(void* aPropertyValue);
static void DestroyMargin(void* aPropertyValue)
{

View File

@ -10,6 +10,7 @@
#include "gfxMatrix.h"
#include "nsISVGSVGFrame.h"
#include "nsSVGContainerFrame.h"
#include "nsRegion.h"
class nsSVGForeignObjectFrame;