Bug 1178172 - Fix all compile errors in dom/base on non-unified build. r=baku

This commit is contained in:
Hiroyuki Ikezoe 2015-07-01 15:56:00 +02:00
parent bf311c8448
commit f948d626ac
17 changed files with 25 additions and 5 deletions

View File

@ -18,6 +18,7 @@
#include "nsPIDOMWindow.h" #include "nsPIDOMWindow.h"
class nsIConsoleAPIStorage; class nsIConsoleAPIStorage;
class nsIPrincipal;
class nsIProfiler; class nsIProfiler;
class nsIXPConnectJSObjectHolder; class nsIXPConnectJSObjectHolder;

View File

@ -5,8 +5,9 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "PerformanceEntry.h" #include "PerformanceEntry.h"
#include "nsIURI.h" #include "MainThreadUtils.h"
#include "mozilla/dom/PerformanceEntryBinding.h" #include "mozilla/dom/PerformanceEntryBinding.h"
#include "nsIURI.h"
using namespace mozilla::dom; using namespace mozilla::dom;

View File

@ -8,6 +8,8 @@
#define mozilla_dom_PerformanceEntry_h___ #define mozilla_dom_PerformanceEntry_h___
#include "nsDOMNavigationTiming.h" #include "nsDOMNavigationTiming.h"
#include "nsString.h"
#include "nsWrapperCache.h"
class nsISupports; class nsISupports;

View File

@ -5,6 +5,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "PerformanceMark.h" #include "PerformanceMark.h"
#include "MainThreadUtils.h"
#include "mozilla/dom/PerformanceMarkBinding.h" #include "mozilla/dom/PerformanceMarkBinding.h"
using namespace mozilla::dom; using namespace mozilla::dom;

View File

@ -5,6 +5,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "PerformanceMeasure.h" #include "PerformanceMeasure.h"
#include "MainThreadUtils.h"
#include "mozilla/dom/PerformanceMeasureBinding.h" #include "mozilla/dom/PerformanceMeasureBinding.h"
using namespace mozilla::dom; using namespace mozilla::dom;

View File

@ -16,6 +16,7 @@
#include "nsGlobalWindow.h" #include "nsGlobalWindow.h"
#include "nsIPresShell.h" #include "nsIPresShell.h"
#include "nsIPrincipal.h" #include "nsIPrincipal.h"
#include "nsPresContext.h"
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

View File

@ -11,9 +11,11 @@
#include "nsCOMPtr.h" #include "nsCOMPtr.h"
#include "nsRefPtr.h" #include "nsRefPtr.h"
#include "nsTArray.h" #include "nsTArray.h"
#include "nsThreadUtils.h"
class nsGlobalWindow; class nsGlobalWindow;
class nsIPrincipal; class nsIPrincipal;
class nsPIDOMWindow;
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

View File

@ -8,6 +8,7 @@
#include "nsContentCID.h" #include "nsContentCID.h"
#include "nsDOMClassInfoID.h" #include "nsDOMClassInfoID.h"
#include "mozilla/HoldDropJSObjects.h"
using namespace mozilla; using namespace mozilla;
using namespace mozilla::dom; using namespace mozilla::dom;

View File

@ -5,6 +5,7 @@
* You can obtain one at http://mozilla.org/MPL/2.0/. */ * You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "SameProcessMessageQueue.h" #include "SameProcessMessageQueue.h"
#include "nsThreadUtils.h"
using namespace mozilla; using namespace mozilla;
using namespace mozilla::dom; using namespace mozilla::dom;

View File

@ -33,6 +33,7 @@
#include "xpcpublic.h" #include "xpcpublic.h"
#include "nsObserverService.h" #include "nsObserverService.h"
#include "nsFocusManager.h" #include "nsFocusManager.h"
#include "nsIInterfaceRequestorUtils.h"
using namespace mozilla; using namespace mozilla;
using namespace mozilla::dom; using namespace mozilla::dom;

View File

@ -16,11 +16,13 @@
#include "nsContentPolicy.h" #include "nsContentPolicy.h"
#include "nsIURI.h" #include "nsIURI.h"
#include "nsIDocShell.h" #include "nsIDocShell.h"
#include "nsIDOMElement.h"
#include "nsIDOMNode.h" #include "nsIDOMNode.h"
#include "nsIDOMWindow.h" #include "nsIDOMWindow.h"
#include "nsIContent.h" #include "nsIContent.h"
#include "nsILoadContext.h" #include "nsILoadContext.h"
#include "nsCOMArray.h" #include "nsCOMArray.h"
#include "nsContentUtils.h"
using mozilla::LogLevel; using mozilla::LogLevel;

View File

@ -17,6 +17,8 @@
#include "mozilla/dom/Animation.h" #include "mozilla/dom/Animation.h"
#include "mozilla/dom/KeyframeEffect.h" #include "mozilla/dom/KeyframeEffect.h"
using mozilla::dom::Animation;
nsAutoTArray<nsRefPtr<nsDOMMutationObserver>, 4>* nsAutoTArray<nsRefPtr<nsDOMMutationObserver>, 4>*
nsDOMMutationObserver::sScheduledMutationObservers = nullptr; nsDOMMutationObserver::sScheduledMutationObservers = nullptr;
@ -345,12 +347,12 @@ void
nsAnimationReceiver::RecordAnimationMutation(Animation* aAnimation, nsAnimationReceiver::RecordAnimationMutation(Animation* aAnimation,
AnimationMutation aMutationType) AnimationMutation aMutationType)
{ {
KeyframeEffectReadOnly* effect = aAnimation->GetEffect(); mozilla::dom::KeyframeEffectReadOnly* effect = aAnimation->GetEffect();
if (!effect) { if (!effect) {
return; return;
} }
Element* animationTarget = effect->GetTarget(); mozilla::dom::Element* animationTarget = effect->GetTarget();
if (!animationTarget) { if (!animationTarget) {
return; return;
} }

View File

@ -206,7 +206,7 @@ class BlobURLsReporter final : public nsIMemoryReporter
{ {
EnumArg* envp = static_cast<EnumArg*>(aUserArg); EnumArg* envp = static_cast<EnumArg*>(aUserArg);
nsCOMPtr<nsIDOMBlob> tmp = do_QueryInterface(aInfo->mObject); nsCOMPtr<nsIDOMBlob> tmp = do_QueryInterface(aInfo->mObject);
nsRefPtr<Blob> blob = static_cast<Blob*>(tmp.get()); nsRefPtr<mozilla::dom::Blob> blob = static_cast<mozilla::dom::Blob*>(tmp.get());
if (blob) { if (blob) {
NS_NAMED_LITERAL_CSTRING NS_NAMED_LITERAL_CSTRING

View File

@ -106,7 +106,7 @@ nsHostObjectURI::Serialize(mozilla::ipc::URIParams& aParams)
hostParams.principal() = info; hostParams.principal() = info;
} else { } else {
hostParams.principal() = void_t(); hostParams.principal() = mozilla::void_t();
} }
aParams = hostParams; aParams = hostParams;

View File

@ -6,6 +6,8 @@
#include "nsIGlobalObject.h" #include "nsIGlobalObject.h"
#include "nsContentUtils.h" #include "nsContentUtils.h"
#include "nsThreadUtils.h"
#include "nsHostObjectProtocolHandler.h"
nsIGlobalObject::~nsIGlobalObject() nsIGlobalObject::~nsIGlobalObject()
{ {

View File

@ -17,6 +17,7 @@
#include "nsIIOService.h" #include "nsIIOService.h"
#include "nsIExternalProtocolHandler.h" #include "nsIExternalProtocolHandler.h"
#include "nsNetUtil.h" #include "nsNetUtil.h"
#include "nsContentUtils.h"
NS_IMPL_ISUPPORTS(nsNoDataProtocolContentPolicy, nsIContentPolicy) NS_IMPL_ISUPPORTS(nsNoDataProtocolContentPolicy, nsIContentPolicy)

View File

@ -11,6 +11,7 @@
#include "nsCOMPtr.h" #include "nsCOMPtr.h"
#include "nscore.h" #include "nscore.h"
class nsILoadInfo;
class nsIPrincipal; class nsIPrincipal;
namespace IPC { namespace IPC {