Bug 1541150: Add missing includes/namespaces/decls to fix non-unified build bustage in layout/base. r=boris
authorDaniel Holbert <dholbert@cs.stanford.edu>
Tue, 02 Apr 2019 20:11:56 +0000
changeset 467657 b81c40d59c6ca3d1ea5270f42e642156029e4ca5
parent 467656 b7470e0dfb3eafbcae59551058760079400127e2
child 467658 45808ab18609bfd3b69c6ae2d21e2b50f5177a02
child 467688 27a4bb6bb72a09849f25f27b37a0aa8dbdc7235d
push id35806
push userrgurzau@mozilla.com
push dateWed, 03 Apr 2019 04:07:39 +0000
treeherdermozilla-central@45808ab18609 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersboris
bugs1541150
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1541150: Add missing includes/namespaces/decls to fix non-unified build bustage in layout/base. r=boris Differential Revision: https://phabricator.services.mozilla.com/D25827
layout/base/MobileViewportManager.cpp
layout/base/ZoomConstraintsClient.cpp
layout/base/nsLayoutUtils.cpp
--- a/layout/base/MobileViewportManager.cpp
+++ b/layout/base/MobileViewportManager.cpp
@@ -4,37 +4,38 @@
  * 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 "MobileViewportManager.h"
 
 #include "gfxPrefs.h"
 #include "LayersLogging.h"
 #include "mozilla/PresShell.h"
+#include "mozilla/dom/Document.h"
 #include "mozilla/dom/Event.h"
 #include "mozilla/dom/EventTarget.h"
 #include "nsIFrame.h"
 #include "nsLayoutUtils.h"
 #include "nsViewManager.h"
 #include "nsViewportInfo.h"
 #include "UnitTransforms.h"
-#include "mozilla/dom/Document.h"
 
 #define MVM_LOG(...)
 // #define MVM_LOG(...) printf_stderr("MVM: " __VA_ARGS__)
 
 NS_IMPL_ISUPPORTS(MobileViewportManager, nsIDOMEventListener, nsIObserver)
 
 #define DOM_META_ADDED NS_LITERAL_STRING("DOMMetaAdded")
 #define DOM_META_CHANGED NS_LITERAL_STRING("DOMMetaChanged")
 #define FULL_ZOOM_CHANGE NS_LITERAL_STRING("FullZoomChange")
 #define LOAD NS_LITERAL_STRING("load")
 #define BEFORE_FIRST_PAINT NS_LITERAL_CSTRING("before-first-paint")
 
 using namespace mozilla;
+using namespace mozilla::dom;
 using namespace mozilla::layers;
 
 MobileViewportManager::MobileViewportManager(nsIPresShell* aPresShell,
                                              Document* aDocument)
     : mDocument(aDocument),
       mPresShell(aPresShell),
       mIsFirstPaint(false),
       mPainted(false) {
--- a/layout/base/ZoomConstraintsClient.cpp
+++ b/layout/base/ZoomConstraintsClient.cpp
@@ -31,16 +31,17 @@ NS_IMPL_ISUPPORTS(ZoomConstraintsClient,
 
 #define DOM_META_ADDED NS_LITERAL_STRING("DOMMetaAdded")
 #define DOM_META_CHANGED NS_LITERAL_STRING("DOMMetaChanged")
 #define FULLSCREEN_CHANGED NS_LITERAL_STRING("fullscreenchange")
 #define BEFORE_FIRST_PAINT NS_LITERAL_CSTRING("before-first-paint")
 #define NS_PREF_CHANGED NS_LITERAL_CSTRING("nsPref:changed")
 
 using namespace mozilla;
+using namespace mozilla::dom;
 using namespace mozilla::layers;
 
 ZoomConstraintsClient::ZoomConstraintsClient()
     : mDocument(nullptr), mPresShell(nullptr) {}
 
 ZoomConstraintsClient::~ZoomConstraintsClient() {}
 
 static nsIWidget* GetWidget(nsIPresShell* aShell) {
--- a/layout/base/nsLayoutUtils.cpp
+++ b/layout/base/nsLayoutUtils.cpp
@@ -21,16 +21,17 @@
 #include "mozilla/Maybe.h"
 #include "mozilla/MemoryReporting.h"
 #include "mozilla/PresShell.h"
 #include "mozilla/ServoStyleSetInlines.h"
 #include "mozilla/StaticPrefs.h"
 #include "mozilla/Unused.h"
 #include "nsCharTraits.h"
 #include "mozilla/dom/Document.h"
+#include "mozilla/dom/DocumentInlines.h"
 #include "nsFontMetrics.h"
 #include "nsPresContext.h"
 #include "nsPresContextInlines.h"
 #include "nsIContent.h"
 #include "nsFrameList.h"
 #include "nsGenericHTMLElement.h"
 #include "nsGkAtoms.h"
 #include "nsAtom.h"