Bug 1440141 part 2 - Move some headers around. r?dholbert draft
authorXidorn Quan <me@upsuper.org>
Thu, 22 Feb 2018 11:52:31 +1100
changeset 758233 bfd51f71389b203830cf08c6271d1ab3dfc3cf32
parent 758200 f5bdc52e96ae063288465a3323cc94dfe6aaf158
child 758234 69f621d5485e79101b303bdba362d10aedbcfb31
push id99994
push userxquan@mozilla.com
push dateThu, 22 Feb 2018 02:16:24 +0000
reviewersdholbert
bugs1440141
milestone60.0a1
Bug 1440141 part 2 - Move some headers around. r?dholbert MozReview-Commit-ID: LvzU9ara8KV
layout/style/StyleSetHandleInlines.h
layout/style/StyleSheet.cpp
--- a/layout/style/StyleSetHandleInlines.h
+++ b/layout/style/StyleSetHandleInlines.h
@@ -3,18 +3,20 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * 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/. */
 
 #ifndef mozilla_StyleSetHandleInlines_h
 #define mozilla_StyleSetHandleInlines_h
 
 #include "mozilla/StyleSheetInlines.h"
+#include "mozilla/ServoStyleContext.h"
 #include "mozilla/ServoStyleSet.h"
 #ifdef MOZ_OLD_STYLE
+#include "mozilla/GeckoStyleContext.h"
 #include "nsStyleSet.h"
 #endif
 #include "nsStyleContext.h"
 
 #ifdef MOZ_OLD_STYLE
 
 #define FORWARD_CONCRETE(method_, geckoargs_, servoargs_) \
   if (IsGecko()) { \
--- a/layout/style/StyleSheet.cpp
+++ b/layout/style/StyleSheet.cpp
@@ -1,28 +1,25 @@
 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * 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 "mozilla/StyleSheet.h"
 
-#include "nsStyleContext.h"
 #include "nsStyleContextInlines.h"
 #include "mozilla/css/GroupRule.h"
 #include "mozilla/dom/CSSImportRule.h"
 #include "mozilla/dom/CSSRuleList.h"
 #include "mozilla/dom/Element.h"
 #include "mozilla/dom/MediaList.h"
 #include "mozilla/dom/ShadowRoot.h"
 #include "mozilla/dom/ShadowRootBinding.h"
-#include "mozilla/GeckoStyleContext.h"
 #include "mozilla/ServoCSSRuleList.h"
-#include "mozilla/ServoStyleContext.h"
 #include "mozilla/ServoStyleSet.h"
 #include "mozilla/ServoStyleSheet.h"
 #include "mozilla/StyleSetHandleInlines.h"
 #include "mozilla/StyleSheetInlines.h"
 #ifdef MOZ_OLD_STYLE
 #include "mozilla/CSSStyleSheet.h"
 #endif