Bug 1449806: Final touch. r?xidorn draft
authorEmilio Cobos Álvarez <emilio@crisal.io>
Fri, 22 Jun 2018 19:04:00 +0200
changeset 809664 13fec31aefd1522f11e9a5a57a017e6dd2a79f78
parent 809663 a68a0abab3152b493294ae25b838c2c0dae31fe0
child 809665 08f3ff07698046c11007e6b12426cf607bd695e1
push id113755
push userbmo:emilio@crisal.io
push dateFri, 22 Jun 2018 17:38:23 +0000
reviewersxidorn
bugs1449806
milestone62.0a1
Bug 1449806: Final touch. r?xidorn MozReview-Commit-ID: 10rrvf728QN
dom/base/nsMappedAttributeElement.h
dom/base/nsMappedAttributes.cpp
--- a/dom/base/nsMappedAttributeElement.h
+++ b/dom/base/nsMappedAttributeElement.h
@@ -8,24 +8,27 @@
  * nsMappedAttributeElement is the base for elements supporting style mapped
  * attributes via nsMappedAttributes (HTML and MathML).
  */
 
 #ifndef NS_MAPPEDATTRIBUTEELEMENT_H_
 #define NS_MAPPEDATTRIBUTEELEMENT_H_
 
 #include "mozilla/Attributes.h"
-#include "mozilla/GenericSpecifiedValues.h"
 #include "nsStyledElement.h"
 
+namespace mozilla {
+class MappedDeclarations;
+}
+
 class nsMappedAttributes;
 struct nsRuleData;
 
 typedef void (*nsMapRuleToAttributesFunc)(const nsMappedAttributes* aAttributes,
-                                          mozilla::MappedDeclarations& aData);
+                                          mozilla::MappedDeclarations&);
 
 typedef nsStyledElement nsMappedAttributeElementBase;
 
 class nsMappedAttributeElement : public nsMappedAttributeElementBase
 {
 
 protected:
 
--- a/dom/base/nsMappedAttributes.cpp
+++ b/dom/base/nsMappedAttributes.cpp
@@ -7,20 +7,19 @@
 /*
  * A unique per-element set of attributes that is used as an
  * nsIStyleRule; used to implement presentational attributes.
  */
 
 #include "nsMappedAttributes.h"
 #include "nsHTMLStyleSheet.h"
 #include "mozilla/DeclarationBlock.h"
-#include "mozilla/GenericSpecifiedValues.h"
 #include "mozilla/HashFunctions.h"
+#include "mozilla/MappedDeclarations.h"
 #include "mozilla/MemoryReporting.h"
-#include "mozilla/ServoSpecifiedValues.h"
 
 using namespace mozilla;
 
 bool
 nsMappedAttributes::sShuttingDown = false;
 nsTArray<void*>*
 nsMappedAttributes::sCachedMappedAttributeAllocations = nullptr;