зеркало из https://github.com/mozilla/gecko-dev.git
Bug 921753 - Part 3: Avoid #including nsStyleStructInlines.h in nsHTMLReflowState.h; r=roc
This patch reduces the number of files that transitively #include gfx/2d.h from 1362 to 1268.
This commit is contained in:
Родитель
b155782d0a
Коммит
44cb2c6702
|
@ -10,6 +10,14 @@
|
|||
#include "nsColor.h"
|
||||
|
||||
class gfxContext;
|
||||
class gfxPattern;
|
||||
struct gfxRGBA;
|
||||
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
class GradientStops;
|
||||
}
|
||||
}
|
||||
|
||||
// define this to enable a bunch of debug dump info
|
||||
#undef DEBUG_NEW_BORDERS
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#include "nsContentUtils.h"
|
||||
#include "nsTArray.h"
|
||||
#include "mozilla/Likely.h"
|
||||
#include "nsIContent.h"
|
||||
|
||||
bool
|
||||
nsCounterUseNode::InitTextFrame(nsGenConList* aList,
|
||||
|
|
|
@ -2633,3 +2633,15 @@ nsHTMLReflowState::SetTruncated(const nsHTMLReflowMetrics& aMetrics,
|
|||
*aStatus &= ~NS_FRAME_TRUNCATED;
|
||||
}
|
||||
}
|
||||
|
||||
bool
|
||||
nsHTMLReflowState::IsFloating() const
|
||||
{
|
||||
return mStyleDisplay->IsFloating(frame);
|
||||
}
|
||||
|
||||
uint8_t
|
||||
nsHTMLReflowState::GetDisplay() const
|
||||
{
|
||||
return mStyleDisplay->GetDisplay(frame);
|
||||
}
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
|
||||
#include "nsMargin.h"
|
||||
#include "nsStyleCoord.h"
|
||||
#include "nsStyleStructInlines.h"
|
||||
#include "nsIFrame.h"
|
||||
#include "mozilla/Assertions.h"
|
||||
#include <algorithm>
|
||||
|
@ -311,13 +310,9 @@ public:
|
|||
const nsStylePadding* mStylePadding;
|
||||
const nsStyleText* mStyleText;
|
||||
|
||||
bool IsFloating() const {
|
||||
return mStyleDisplay->IsFloating(frame);
|
||||
}
|
||||
bool IsFloating() const;
|
||||
|
||||
uint8_t GetDisplay() const {
|
||||
return mStyleDisplay->GetDisplay(frame);
|
||||
}
|
||||
uint8_t GetDisplay() const;
|
||||
|
||||
// a frame (e.g. nsTableCellFrame) which may need to generate a special
|
||||
// reflow for percent height calculations
|
||||
|
|
|
@ -58,6 +58,7 @@
|
|||
#include "ImageContainer.h"
|
||||
#include "nsStyleSet.h"
|
||||
#include "nsBlockFrame.h"
|
||||
#include "nsStyleStructInlines.h"
|
||||
|
||||
#include "mozilla/Preferences.h"
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include "nsIContent.h"
|
||||
#include "nsLayoutUtils.h"
|
||||
#include "nsTextFrame.h"
|
||||
#include "nsStyleStructInlines.h"
|
||||
#include <algorithm>
|
||||
|
||||
#ifdef DEBUG
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
#include "nsSVGGeometryFrame.h"
|
||||
#include "nsSVGUtils.h"
|
||||
#include "nsTextFragment.h"
|
||||
#include "nsIContent.h"
|
||||
|
||||
class CharacterIterator;
|
||||
class gfxContext;
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include "nsITimer.h"
|
||||
#include "nsRepeatService.h"
|
||||
#include "mozilla/BasicEvents.h"
|
||||
#include "nsIContent.h"
|
||||
|
||||
class nsAutoRepeatBoxFrame : public nsButtonBoxFrame
|
||||
{
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
#include "mozilla/LookAndFeel.h"
|
||||
#include "nsThemeConstants.h"
|
||||
#include "nsRenderingContext.h"
|
||||
#include "nsIContent.h"
|
||||
|
||||
using namespace mozilla;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче