Bug 1336223 part 2: Add some missing #includes & namespaces to nsMediaList.cpp. r=xidorn
authorDaniel Holbert <dholbert@cs.stanford.edu>
Thu, 02 Feb 2017 15:18:37 -0800
changeset 469941 ecfa3ac80589abff9a4790634dfc2e3d41fbf28e
parent 469940 48a581014c8a60d1a179c714b995c63d025109cd
child 469942 e1a2f0216e034c3114ce102cb45a212bc2161043
push id43887
push userbmo:gps@mozilla.com
push dateFri, 03 Feb 2017 00:34:08 +0000
reviewersxidorn
bugs1336223
milestone54.0a1
Bug 1336223 part 2: Add some missing #includes & namespaces to nsMediaList.cpp. r=xidorn MozReview-Commit-ID: AKOSOtH0NiD
layout/style/nsMediaList.cpp
--- a/layout/style/nsMediaList.cpp
+++ b/layout/style/nsMediaList.cpp
@@ -9,16 +9,21 @@
  */
 
 #include "nsMediaList.h"
 
 #include "mozAutoDocUpdate.h"
 #include "mozilla/dom/MediaListBinding.h"
 #include "mozilla/StyleSheet.h"
 #include "nsCSSParser.h"
+#include "nsCSSRules.h"
+#include "nsMediaFeatures.h"
+#include "nsRuleNode.h"
+
+using namespace mozilla;
 
 template <class Numeric>
 int32_t DoCompare(Numeric a, Numeric b)
 {
   if (a == b)
     return 0;
   if (a < b)
     return -1;
@@ -507,17 +512,17 @@ nsMediaList::nsMediaList()
 
 nsMediaList::~nsMediaList()
 {
 }
 
 /* virtual */ JSObject*
 nsMediaList::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
 {
-  return MediaListBinding::Wrap(aCx, this, aGivenProto);
+  return dom::MediaListBinding::Wrap(aCx, this, aGivenProto);
 }
 
 void
 nsMediaList::GetText(nsAString& aMediaText)
 {
   aMediaText.Truncate();
 
   for (int32_t i = 0, i_end = mArray.Length(); i < i_end; ++i) {