Bug 669310 - Fixes various includes and forward declarations. f=Ms2ger r=jst

This commit is contained in:
Mounir Lamouri 2011-07-20 12:18:54 -07:00
parent f5865f36e6
commit 2e1dfaef9e
40 changed files with 54 additions and 5 deletions

View File

@ -45,6 +45,7 @@
#include "nsEventShell.h"
#include "nsTextAccessible.h"
#include "TextUpdater.h"
#include "mozilla/dom/Element.h"
////////////////////////////////////////////////////////////////////////////////

View File

@ -105,6 +105,7 @@
#include "mozilla/unused.h"
#include "mozilla/Preferences.h"
#include "mozilla/dom/Element.h"
using namespace mozilla;

View File

@ -66,6 +66,7 @@
#include "nsContentCID.h"
#include "nsComponentManagerUtils.h"
#include "nsIInterfaceRequestorUtils.h"
#include "mozilla/dom/Element.h"
static NS_DEFINE_IID(kRangeCID, NS_RANGE_CID);

View File

@ -43,6 +43,7 @@
#include "nsCoreUtils.h"
#include "nsEventStates.h"
#include "mozilla/dom/Element.h"
////////////////////////////////////////////////////////////////////////////////
// nsHTMLLinkAccessible

View File

@ -58,6 +58,7 @@
#include "nsWidgetsCID.h"
#include "mozilla/Preferences.h"
#include "mozilla/dom/Element.h"
using namespace mozilla;

View File

@ -79,13 +79,13 @@ static fp_except_t oldmask = fpsetmask(~allmask);
#include "mozilla/AutoRestore.h"
#include "nsINode.h"
#include "nsHashtable.h"
#include "nsIDOMNode.h"
struct nsNativeKeyEvent; // Don't include nsINativeKeyBindings.h here: it will force strange compilation error!
class nsIDOMScriptObjectFactory;
class nsIXPConnect;
class nsIContent;
class nsIDOMNode;
class nsIDOMKeyEvent;
class nsIDocument;
class nsIDocumentObserver;
@ -122,7 +122,6 @@ struct JSRuntime;
class nsIUGenCategory;
class nsIWidget;
class nsIDragSession;
class nsPIDOMWindow;
class nsIPresShell;
class nsIXPConnectJSObjectHolder;
#ifdef MOZ_XTF

View File

@ -56,7 +56,7 @@
#include "nsCycleCollectionParticipant.h"
#include "nsWrapperCache.h"
#include "nsCRT.h"
#include "mozilla/dom/Element.h"
#include "nsHashKeys.h"
// Magic namespace id that means "match all namespaces". This is
// negative so it won't collide with actual namespace constants.
@ -74,6 +74,11 @@ typedef PRBool (*nsContentListMatchFunc)(nsIContent* aContent,
typedef void (*nsContentListDestroyFunc)(void* aData);
class nsIDocument;
namespace mozilla {
namespace dom {
class Element;
}
}
class nsBaseContentList : public nsINodeList

View File

@ -79,6 +79,8 @@
#include "nsContentUtils.h"
#include "nsContentCID.h"
#include "mozilla/dom/Element.h"
nsresult NS_NewDomSelection(nsISelection **aDomSelection);
static NS_DEFINE_CID(kCClipboardCID, NS_CLIPBOARD_CID);

View File

@ -82,6 +82,7 @@
#include "nsTArray.h"
#include "nsIFrame.h"
#include "nsStringBuffer.h"
#include "mozilla/dom/Element.h"
nsresult NS_NewDomSelection(nsISelection **aDomSelection);

View File

@ -53,8 +53,8 @@
#include "nsAutoPtr.h"
#include "nsFrameMessageManager.h"
#include "Layers.h"
#include "nsIContent.h"
class nsIContent;
class nsIURI;
class nsSubDocumentFrame;
class nsIView;

View File

@ -79,6 +79,7 @@
#include "nsSVGEffects.h"
#include "mozAutoDocUpdate.h"
#include "mozilla/dom/Element.h"
#ifdef DEBUG_chb
static void PrintReqURL(imgIRequest* req) {

View File

@ -52,6 +52,7 @@
#include "nsCOMPtr.h"
#include "nsContentUtils.h"
#include "nsString.h"
#include "nsEventStates.h"
class nsIURI;
class nsIDocument;

View File

@ -55,6 +55,8 @@
#include NEW_H
#include "nsFixedSizeAllocator.h"
#include "prprf.h"
#include "nsIDocument.h"
#include "nsGkAtoms.h"
static const size_t kNodeInfoPoolSizes[] = {
sizeof(nsNodeInfo)

View File

@ -96,6 +96,7 @@
#include "nsIContentSecurityPolicy.h"
#include "nsIChannelPolicy.h"
#include "nsChannelPolicy.h"
#include "mozilla/dom/Element.h"
#ifdef PR_LOGGING
static PRLogModuleInfo* gObjectLog = PR_NewLogModule("objlc");

View File

@ -47,6 +47,8 @@
#include "nsIDOMNode.h"
#include "nsIDOMNodeFilter.h"
#include "nsDOMError.h"
#include "nsINode.h"
#include "nsIContent.h"
#include "nsContentUtils.h"

View File

@ -45,6 +45,7 @@
#include "nsIDocument.h"
#include "nsIPresShell.h"
#include "nsCSSProps.h"
#include "mozilla/dom/Element.h"
// Callback function, for freeing string buffers stored in property table
static void

View File

@ -104,6 +104,8 @@
#include "nsDOMClassInfo.h"
#include "nsJSUtils.h"
#include "mozilla/dom/Element.h"
// Helper classes
/***********************************************************************/

View File

@ -74,6 +74,7 @@
#include "nsIStyleRuleProcessor.h"
#include "nsXBLResourceLoader.h"
#include "mozilla/dom/Element.h"
// Helper Classes =====================================================================

View File

@ -89,6 +89,7 @@
#endif
#include "nsIDOMEventListener.h"
#include "mozilla/Preferences.h"
#include "mozilla/dom/Element.h"
using namespace mozilla;

View File

@ -69,6 +69,7 @@
#include "nsISelectionController.h"
#include "nsGUIEvent.h"
#include "mozilla/Preferences.h"
#include "mozilla/dom/Element.h"
using namespace mozilla;

View File

@ -54,6 +54,7 @@
#include "nsUnicharUtils.h"
#include "nsAttrName.h"
#include "nsTArray.h"
#include "mozilla/dom/Element.h"
const PRUint32 kUnknownIndex = PRUint32(-1);

View File

@ -71,6 +71,7 @@
#include "nsHTMLReflowState.h"
#include "nsIObjectLoadingContent.h"
#include "mozilla/Preferences.h"
#include "mozilla/dom/Element.h"
// for event firing in context menus
#include "nsPresContext.h"

View File

@ -46,9 +46,9 @@
#include "nsCOMPtr.h"
#include "nsCOMArray.h"
#include "TimeStamp.h"
#include "nsIURI.h"
class nsDOMNavigationTimingClock;
class nsIURI;
class nsIDocument;
class nsDOMNavigationTiming

View File

@ -57,6 +57,7 @@
#include "nsCOMPtr.h"
#include "nsContentUtils.h"
#include "nsIScriptSecurityManager.h"
#include "nsPIDOMWindow.h"
#include "nsDOMJSUtils.h" // for GetScriptContextFromJSContext

View File

@ -59,6 +59,7 @@
#include "nsPluginStreamListenerPeer.h"
#include "nsSize.h"
#include "nsNetCID.h"
#include "nsIContent.h"
using namespace mozilla;
using namespace mozilla::plugins::parent;

View File

@ -57,6 +57,7 @@
#include "nsDOMEventTargetHelper.h"
#include "nsIPrivateDOMEvent.h"
#include "nsIDocument.h"
class AlertServiceObserver;

View File

@ -112,6 +112,7 @@
#include "mozilla/FunctionTimer.h"
#include "mozilla/Preferences.h"
#include "mozilla/dom/Element.h"
#define NS_ERROR_EDITOR_NO_SELECTION NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_EDITOR,1)
#define NS_ERROR_EDITOR_NO_TEXTNODE NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_EDITOR,2)

View File

@ -99,6 +99,7 @@
#include "nsIFrame.h"
#include "nsIParserService.h"
#include "mozilla/dom/Element.h"
// Some utilities to handle annoying overloading of "A" tag for link and named anchor
static char hrefText[] = "href";

View File

@ -195,6 +195,8 @@ static const char sPrintOptionsContractID[] = "@mozilla.org/gfx/printset
//switch to page layout
#include "nsGfxCIID.h"
#include "mozilla/dom/Element.h"
using namespace mozilla;
#ifdef NS_DEBUG

View File

@ -45,6 +45,7 @@
#include "nsITheme.h"
#include "nsThemeConstants.h"
#include "nsEventStates.h"
#include "mozilla/dom/Element.h"
#define ACTIVE "active"
#define HOVER "hover"

View File

@ -51,6 +51,7 @@
#include "nsContentUtils.h"
#include "nsFormControlFrame.h"
#include "nsFontMetrics.h"
#include "mozilla/dom/Element.h"
nsIFrame*

View File

@ -113,6 +113,7 @@ static NS_DEFINE_CID(kFrameTraversalCID, NS_FRAMETRAVERSAL_CID);
#endif // IBMBIDI
#include "nsDOMError.h"
#include "mozilla/dom/Element.h"
using namespace mozilla;

View File

@ -59,6 +59,8 @@
#include "nsEventStateManager.h"
#include "nsIAtom.h"
#include "nsIRange.h"
#include "mozilla/dom/Element.h"
///////////////////////////////////////////////////////////////////////////////

View File

@ -52,6 +52,8 @@
#include "nsIDOMElement.h"
#include "nsDisplayList.h"
#include "nsContentUtils.h"
#include "mozilla/dom/Element.h"
//
// NS_NewXULButtonFrame

View File

@ -60,6 +60,8 @@
#include "nsContentUtils.h"
#include "nsMenuPopupFrame.h"
#include "nsIScreenManager.h"
#include "mozilla/dom/Element.h"
//
// NS_NewResizerFrame

View File

@ -72,6 +72,7 @@
#include "nsLayoutUtils.h"
#include "nsDisplayList.h"
#include "nsContentUtils.h"
#include "mozilla/dom/Element.h"
class nsSplitterInfo {
public:

View File

@ -61,6 +61,8 @@
#include "nsIRootBox.h"
#include "nsEventDispatcher.h"
#include "mozilla/Preferences.h"
#include "mozilla/dom/Element.h"
using namespace mozilla;

View File

@ -40,6 +40,7 @@
#include "nsTreeStyleCache.h"
#include "nsISupportsArray.h"
#include "nsStyleSet.h"
#include "mozilla/dom/Element.h"
// The style context cache impl
nsStyleContext*

View File

@ -88,6 +88,7 @@
#include "nsIWindowWatcher.h"
#include "nsIObserverService.h"
#include "nsFocusManager.h"
#include "mozilla/dom/Element.h"
#include "nsTypeAheadFind.h"

View File

@ -54,6 +54,7 @@
#include "nsPIDOMWindow.h"
#include "nsProgressFrame.h"
#include "nsMenuFrame.h"
#include "mozilla/dom/Element.h"
nsNativeTheme::nsNativeTheme()
: mAnimatedContentTimeout(PR_UINT32_MAX)