Bug 562971. Include Element.h as mozilla/dom/Element.h and don't use 'using namespace' quite as much. r=jst

This commit is contained in:
Boris Zbarsky
2010-05-05 14:18:05 -04:00
parent 3627cd258c
commit cd27fc6a1c
40 changed files with 52 additions and 47 deletions

View File

@@ -49,7 +49,7 @@
#include "nsIBrowserDOMWindow.h"
#include "nsIComponentManager.h"
#include "nsIContent.h"
#include "Element.h"
#include "mozilla/dom/Element.h"
#include "nsIDocument.h"
#include "nsIDOMDocument.h"
#include "nsIDOM3Document.h"
@@ -225,7 +225,7 @@ static NS_DEFINE_CID(kAppShellCID, NS_APPSHELL_CID);
#include "nsIChannelPolicy.h"
#include "nsIContentSecurityPolicy.h"
using namespace mozilla::dom;
using namespace mozilla;
// Number of documents currently loading
static PRInt32 gNumberOfDocumentsLoading = 0;
@@ -2843,7 +2843,7 @@ PrintDocTree(nsIDocShellTreeItem * aParentNode, int aLevel)
if (vm) {
vm->GetWidget(getter_AddRefs(widget));
}
Element* rootElement = doc->GetRootElement();
dom::Element* rootElement = doc->GetRootElement();
printf("DS %p Ty %s Doc %p DW %p EM %p CN %p\n",
(void*)parentAsDocShell.get(),