Fixing build bustage for those building without SVG turned on
authorjwatt@jwatt.org
Tue, 20 Nov 2007 05:28:56 -0800
changeset 8220 5d4e73fcc213f50d3d30ac71b7aeededd8b06fec
parent 8219 a2a7432e70b800cf99e4d1e8b60894638abecab5
child 8221 416176d2dd529564f5818291d5f3de6fc2e0b95b
push id1
push userbsmedberg@mozilla.com
push dateThu, 20 Mar 2008 16:49:24 +0000
treeherderautoland@61007906a1f8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone1.9b2pre
Fixing build bustage for those building without SVG turned on
layout/generic/nsFrameFrame.cpp
--- a/layout/generic/nsFrameFrame.cpp
+++ b/layout/generic/nsFrameFrame.cpp
@@ -944,15 +944,17 @@ nsSubDocumentFrame::ObtainIntrinsicSizeF
           nsIFrame* scrolled = scrollable->GetScrolledFrame();
           if (scrolled) {
             subDocRoot = scrolled->GetFirstChild(nsnull);
           }
         }
       }
     }
 
+#ifdef MOZ_SVG
     if (subDocRoot && subDocRoot->GetContent() &&
         subDocRoot->GetContent()->NodeInfo()->Equals(nsGkAtoms::svg, kNameSpaceID_SVG)) {
       return subDocRoot; // SVG documents have an intrinsic size
     }
+#endif
   }
   return nsnull;
 }