diff --git a/dom/performance/PerformanceMark.cpp b/dom/performance/PerformanceMark.cpp index 771fc64467..131a706993 100644 --- a/dom/performance/PerformanceMark.cpp +++ b/dom/performance/PerformanceMark.cpp @@ -3,11 +3,16 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include "Performance.h" #include "PerformanceMark.h" #include "MainThreadUtils.h" +#include "mozilla/HoldDropJSObjects.h" +#include "mozilla/dom/PerformanceBinding.h" #include "mozilla/dom/PerformanceMarkBinding.h" #include "mozilla/dom/MessagePortBinding.h" +#include "nsContentUtils.h" +using mozilla::ErrorResult; using mozilla::dom::StructuredSerializeOptions; using namespace mozilla::dom; diff --git a/dom/performance/PerformanceMark.h b/dom/performance/PerformanceMark.h index 4e98bfaa92..9ac640fcf9 100644 --- a/dom/performance/PerformanceMark.h +++ b/dom/performance/PerformanceMark.h @@ -8,9 +8,13 @@ #include "mozilla/dom/PerformanceEntry.h" +class nsIGlobalObject; namespace mozilla { + +class ErrorResult; namespace dom { +class GlobalObject; struct PerformanceMarkOptions; // http://www.w3.org/TR/user-timing/#performancemark diff --git a/dom/performance/PerformanceMeasure.cpp b/dom/performance/PerformanceMeasure.cpp index 3c6e73230f..64da3dbcd9 100644 --- a/dom/performance/PerformanceMeasure.cpp +++ b/dom/performance/PerformanceMeasure.cpp @@ -5,6 +5,7 @@ #include "PerformanceMeasure.h" #include "MainThreadUtils.h" +#include "mozilla/HoldDropJSObjects.h" #include "mozilla/dom/PerformanceMeasureBinding.h" using namespace mozilla::dom;