Bug 981150: Use nsTArrayForwardDeclare.h more. r=ehsan

This commit is contained in:
Kyle Huey 2014-03-15 12:00:17 -07:00
parent b564544cf7
commit d7764d686d
13 changed files with 13 additions and 17 deletions

View File

@ -25,6 +25,7 @@
#include "mozilla/TimeStamp.h"
#include "nsContentListDeclarations.h"
#include "nsMathUtils.h"
#include "nsTArrayForwardDeclare.h"
#include "Units.h"
#if defined(XP_WIN)
@ -102,7 +103,6 @@ struct JSRuntime;
struct nsIntMargin;
template<class E> class nsCOMArray;
template<class E> class nsTArray;
template<class K, class V> class nsDataHashtable;
template<class K, class V> class nsRefPtrHashtable;
template<class T> class nsReadingIterator;

View File

@ -7,12 +7,12 @@
#define nsIHTMLCollection_h___
#include "nsIDOMHTMLCollection.h"
#include "nsTArrayForwardDeclare.h"
#include "nsWrapperCache.h"
#include "js/TypeDecls.h"
class nsINode;
class nsString;
template<class> class nsTArray;
namespace mozilla {
class ErrorResult;

View File

@ -8,8 +8,7 @@
#include <stdint.h>
template <class T>
class nsTArray;
#include "nsTArrayForwardDeclare.h"
namespace mozilla {

View File

@ -10,7 +10,6 @@
#include "SVGGraphicsElement.h"
struct gfxMatrix;
template <class E> class nsTArray;
struct nsSVGMark {
enum Type {

View File

@ -18,11 +18,10 @@
#include "nsCOMPtr.h" // for already_AddRefed
#include "nsISupportsImpl.h" // for MOZ_COUNT_CTOR, etc
#include "mozilla/Vector.h" // for mozilla::Vector
#include "nsTArray.h" // for nsTArray, nsTArray_Impl, etc
#include "nsTArrayForwardDeclare.h" // for nsTArray, nsTArray_Impl, etc
#include "mozilla/gfx/Logging.h" // for gfx::TreeLog
class gfx3DMatrix;
template <class E> class nsTArray;
namespace mozilla {
class InputData;

View File

@ -11,14 +11,13 @@
#define nsFlexContainerFrame_h___
#include "nsContainerFrame.h"
#include "nsTArrayForwardDeclare.h"
nsIFrame* NS_NewFlexContainerFrame(nsIPresShell* aPresShell,
nsStyleContext* aContext);
typedef nsContainerFrame nsFlexContainerFrameSuper;
template <class T> class nsTArray;
class nsFlexContainerFrame : public nsFlexContainerFrameSuper {
public:
NS_DECL_FRAMEARENA_HELPERS

View File

@ -8,6 +8,7 @@
#include <stdio.h> /* for FILE* */
#include "nsDebug.h"
#include "nsTArrayForwardDeclare.h"
#if defined(DEBUG) || defined(MOZ_DUMP_PAINTING)
// DEBUG_FRAME_DUMP enables nsIFrame::List and related methods.
@ -18,7 +19,6 @@
class nsIFrame;
class nsIPresShell;
class nsPresContext;
template <class T> class nsTArray;
namespace mozilla {
namespace layout {

View File

@ -12,6 +12,7 @@
#include "mozilla/Attributes.h"
#include "nsContainerFrame.h"
#include "nsIAnonymousContentCreator.h"
#include "nsTArrayForwardDeclare.h"
#include "FrameLayerBuilder.h"
namespace mozilla {
@ -24,7 +25,6 @@ class LayerManager;
class nsAString;
class nsPresContext;
class nsDisplayItem;
template <class T> class nsTArray;
nsIFrame* NS_NewVideoFrame (nsIPresShell* aPresShell, nsStyleContext* aContext);

View File

@ -8,6 +8,7 @@
#include "nsCoord.h"
#include "nsCSSProperty.h"
#include "nsString.h"
#include "nsTArrayForwardDeclare.h"
class nsCSSValue;
class nsStringComparator;
@ -18,7 +19,6 @@ class nsIURI;
struct gfxFontFeature;
struct gfxAlternateValue;
class nsCSSValueList;
template <class E> class nsTArray;
// Style utility functions
class nsStyleUtil {

View File

@ -5,7 +5,7 @@
#ifndef nsHttpInfo__
#define nsHttpInfo__
template<class T> class nsTArray;
#include "nsTArrayForwardDeclare.h"
namespace mozilla {
namespace net {

View File

@ -8,7 +8,8 @@
#include "nsIStreamConverterService.h"
template<class T> class nsTArray;
#include "nsTArrayForwardDeclare.h"
class nsObjectHashtable;
class nsCString;

View File

@ -5,8 +5,7 @@
#include "nsIStringEnumerator.h"
#include "nsStringFwd.h"
template<class T> class nsTArray;
#include "nsTArrayForwardDeclare.h"
// nsIStringEnumerator/nsIUTF8StringEnumerator implementations
//

View File

@ -16,7 +16,7 @@
#include "nsAString.h"
#endif
template<class E> class nsTArray;
#include "nsTArrayForwardDeclare.h"
inline size_t Distance( const nsReadingIterator<char16_t>& start, const nsReadingIterator<char16_t>& end )
{