Bug 440975 - "MOZ_SVG define required for some includes" [p=romaxa@gmail.com (romaxa) r+sr=jst]
authorromaxa <romaxa@gmail.com>
Sat, 12 Jul 2008 03:50:05 -0500
changeset 15840 cdc93a0afd5e93d4b836d0e01e85c71f0d31795f
parent 15839 3268e0025bba64a630b8c25a66aca91c61d6f172
child 15841 25c5f7adddc0061c88238c3ed6d5cd4577b8bc0f
child 15842 31f5da857994a4ba91afe90777cad532ab37fa0b
push idunknown
push userunknown
push dateunknown
bugs440975
milestone1.9.1a1pre
Bug 440975 - "MOZ_SVG define required for some includes" [p=romaxa@gmail.com (romaxa) r+sr=jst]
content/html/content/src/nsHTMLIFrameElement.cpp
content/html/content/src/nsHTMLObjectElement.cpp
--- a/content/html/content/src/nsHTMLIFrameElement.cpp
+++ b/content/html/content/src/nsHTMLIFrameElement.cpp
@@ -31,19 +31,21 @@
  * decision by deleting the provisions above and replace them with the notice
  * and other provisions required by the GPL or the LGPL. If you do not delete
  * the provisions above, a recipient may use your version of this file under
  * the terms of any one of the MPL, the GPL or the LGPL.
  *
  * ***** END LICENSE BLOCK ***** */
 #include "nsIDOMHTMLIFrameElement.h"
 #include "nsGenericHTMLElement.h"
+#include "nsIDOMDocument.h"
+#ifdef MOZ_SVG
 #include "nsIDOMGetSVGDocument.h"
-#include "nsIDOMDocument.h"
 #include "nsIDOMSVGDocument.h"
+#endif
 #include "nsGkAtoms.h"
 #include "nsPresContext.h"
 #include "nsIPresShell.h"
 #include "nsIDocument.h"
 #include "nsMappedAttributes.h"
 #include "nsDOMError.h"
 #include "nsRuleData.h"
 #include "nsStyleConsts.h"
--- a/content/html/content/src/nsHTMLObjectElement.cpp
+++ b/content/html/content/src/nsHTMLObjectElement.cpp
@@ -37,19 +37,21 @@
  * ***** END LICENSE BLOCK ***** */
 
 #include "nsGenericHTMLElement.h"
 #include "nsObjectLoadingContent.h"
 #include "nsGkAtoms.h"
 #include "nsDOMError.h"
 #include "nsIDocument.h"
 #include "nsIDOMDocument.h"
+#ifdef MOZ_SVG
 #include "nsIDOMSVGDocument.h"
+#include "nsIDOMGetSVGDocument.h"
+#endif
 #include "nsIDOMHTMLObjectElement.h"
-#include "nsIDOMGetSVGDocument.h"
 #include "nsIFormSubmission.h"
 #include "nsIObjectFrame.h"
 #include "nsIPluginInstance.h"
 #include "nsIPluginInstanceInternal.h"
 
 class nsHTMLObjectElement : public nsGenericHTMLFormElement,
                             public nsObjectLoadingContent,
                             public nsIDOMHTMLObjectElement