Bug 1518795 - Fix bustage. r=emilio, a=bustage
authorRyan VanderMeulen <ryanvm@gmail.com>
Wed, 09 Jan 2019 18:00:50 -0500
changeset 506610 d0a5f0121ba7f123f030e861fd1dba05bd39b0d4
parent 506609 87b11c0f4ff5507a3bc4e52f6d20a8c5760c5acc
child 506611 b8ecde546e3790c818cff95ee0f831cec308d6c8
push id10480
push userryanvm@gmail.com
push dateWed, 09 Jan 2019 23:01:04 +0000
treeherdermozilla-beta@d0a5f0121ba7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersemilio, bustage
bugs1518795
milestone65.0
Bug 1518795 - Fix bustage. r=emilio, a=bustage
dom/html/HTMLImageElement.cpp
--- a/dom/html/HTMLImageElement.cpp
+++ b/dom/html/HTMLImageElement.cpp
@@ -497,17 +497,17 @@ nsresult HTMLImageElement::BindToTree(ns
 
   nsImageLoadingContent::BindToTree(aDocument, aParent, aBindingParent);
 
   if (aParent) {
     UpdateFormOwner();
   }
 
   if (HaveSrcsetOrInPicture()) {
-    Document* doc = GetComposedDoc();
+    nsIDocument* doc = GetComposedDoc();
     if (doc && !mInDocResponsiveContent) {
       doc->AddResponsiveContent(this);
       mInDocResponsiveContent = true;
     }
 
     // Mark channel as urgent-start before load image if the image load is
     // initaiated by a user interaction.
     mUseUrgentStartForChannel = EventStateManager::IsHandlingUserInput();