Bug 1593222: part 13) Include "ReferrerInfo.h" in "nsAttrValue.cpp". r=smaug
authorMirko Brodesser <mbrodesser@mozilla.com>
Tue, 05 Nov 2019 20:22:40 +0000
changeset 500815 8510e2594e5ff152fab202fa4658ca8b81dcf021
parent 500814 a017e363de4f498a8547bc9d27469b7aa3815a2b
child 500816 0171571ae8d59d915fe2fb70b90ecca9214e4e1f
push id114166
push userapavel@mozilla.com
push dateThu, 07 Nov 2019 10:04:01 +0000
treeherdermozilla-inbound@d271c572a9bc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1593222
milestone72.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 1593222: part 13) Include "ReferrerInfo.h" in "nsAttrValue.cpp". r=smaug Was necessary to get some build working. Depends on D51828 Differential Revision: https://phabricator.services.mozilla.com/D51829
dom/base/nsAttrValue.cpp
--- a/dom/base/nsAttrValue.cpp
+++ b/dom/base/nsAttrValue.cpp
@@ -22,16 +22,17 @@
 #include "mozilla/ServoUtils.h"
 #include "mozilla/DeclarationBlock.h"
 #include "nsContentUtils.h"
 #include "nsReadableUtils.h"
 #include "nsHTMLCSSStyleSheet.h"
 #include "nsStyledElement.h"
 #include "nsIURI.h"
 #include "mozilla/dom/Document.h"
+#include "ReferrerInfo.h"
 #include <algorithm>
 
 using namespace mozilla;
 
 #define MISC_STR_PTR(_cont) \
   reinterpret_cast<void*>((_cont)->mStringBits & NS_ATTRVALUE_POINTERVALUE_MASK)
 
 /* static */
@@ -1619,17 +1620,17 @@ bool nsAttrValue::ParseStyleAttribute(co
       // Set our MiscContainer to the cached one.
       NS_ADDREF(cont);
       SetPtrValueAndType(cont, eOtherBase);
       return true;
     }
   }
 
   nsCOMPtr<nsIReferrerInfo> referrerInfo =
-      ReferrerInfo::CreateForInternalCSSResources(ownerDoc);
+      dom::ReferrerInfo::CreateForInternalCSSResources(ownerDoc);
   RefPtr<URLExtraData> data =
       new URLExtraData(baseURI, referrerInfo, principal);
   RefPtr<DeclarationBlock> decl = DeclarationBlock::FromCssText(
       aString, data, ownerDoc->GetCompatibilityMode(), ownerDoc->CSSLoader());
   if (!decl) {
     return false;
   }
   decl->SetHTMLCSSStyleSheet(sheet);