- quick attempt to fix the no-SVG build
* platform/graphics/svg/SVGResource.cpp:
* platform/graphics/svg/SVGResource.h:
* platform/graphics/svg/SVGResourceClipper.cpp:
* platform/graphics/svg/SVGResourceClipper.h:
* platform/graphics/svg/SVGResourceImage.h:
* platform/graphics/svg/SVGResourceMarker.cpp:
* platform/graphics/svg/SVGResourceMarker.h:
* platform/graphics/svg/SVGResourceMasker.cpp:
* platform/graphics/svg/SVGResourceMasker.h:
* platform/graphics/svg/cg/SVGResourceMaskerCg.h:
* platform/graphics/svg/qt/SVGResourceClipperQt.cpp:
* platform/graphics/svg/qt/SVGResourceImageQt.cpp:
* platform/graphics/svg/qt/SVGResourceMaskerQt.cpp:
Added #ifdef SVG_SUPPORT to these files.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17609 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/platform/graphics/svg/SVGResource.cpp b/WebCore/platform/graphics/svg/SVGResource.cpp
index 0e9a5b5..ef022f6 100644
--- a/WebCore/platform/graphics/svg/SVGResource.cpp
+++ b/WebCore/platform/graphics/svg/SVGResource.cpp
@@ -26,6 +26,8 @@
#include "config.h"
#include "SVGResource.h"
+#ifdef SVG_SUPPORT
+
#include "KRenderingPaintServer.h"
#include "RenderPath.h"
#include "SVGElement.h"
@@ -108,3 +110,5 @@
}
} // namespace WebCore
+
+#endif
diff --git a/WebCore/platform/graphics/svg/SVGResource.h b/WebCore/platform/graphics/svg/SVGResource.h
index 721077c..ebac275 100644
--- a/WebCore/platform/graphics/svg/SVGResource.h
+++ b/WebCore/platform/graphics/svg/SVGResource.h
@@ -26,6 +26,8 @@
#ifndef SVGResource_H
#define SVGResource_H
+#ifdef SVG_SUPPORT
+
#include "Shared.h"
#include "PlatformString.h"
#include "DeprecatedValueList.h"
@@ -100,4 +102,6 @@
} // namespace WebCore
+#endif
+
#endif // SVGResource_H
diff --git a/WebCore/platform/graphics/svg/SVGResourceClipper.cpp b/WebCore/platform/graphics/svg/SVGResourceClipper.cpp
index e65b008..ebb36fd 100644
--- a/WebCore/platform/graphics/svg/SVGResourceClipper.cpp
+++ b/WebCore/platform/graphics/svg/SVGResourceClipper.cpp
@@ -26,6 +26,8 @@
#include "config.h"
#include "SVGResourceClipper.h"
+#ifdef SVG_SUPPORT
+
#include "SVGRenderTreeAsText.h"
#include "TextStream.h"
@@ -95,3 +97,5 @@
}
} // namespace WebCore
+
+#endif
diff --git a/WebCore/platform/graphics/svg/SVGResourceClipper.h b/WebCore/platform/graphics/svg/SVGResourceClipper.h
index 07f6712..fdacbdd 100644
--- a/WebCore/platform/graphics/svg/SVGResourceClipper.h
+++ b/WebCore/platform/graphics/svg/SVGResourceClipper.h
@@ -26,6 +26,8 @@
#ifndef SVGResourceClipper_H
#define SVGResourceClipper_H
+#ifdef SVG_SUPPORT
+
#include "SVGResource.h"
#include "Path.h"
@@ -79,4 +81,6 @@
} // namespace WebCore
+#endif
+
#endif // SVGResourceClipper_H
diff --git a/WebCore/platform/graphics/svg/SVGResourceImage.h b/WebCore/platform/graphics/svg/SVGResourceImage.h
index 59dd6c0..9ea9575 100644
--- a/WebCore/platform/graphics/svg/SVGResourceImage.h
+++ b/WebCore/platform/graphics/svg/SVGResourceImage.h
@@ -26,6 +26,8 @@
#ifndef SVGResourceImage_H
#define SVGResourceImage_H
+#ifdef SVG_SUPPORT
+
#include "IntSize.h"
#include "SVGResource.h"
@@ -65,4 +67,6 @@
} // namespace WebCore
+#endif
+
#endif // SVGResourceImage_H
diff --git a/WebCore/platform/graphics/svg/SVGResourceMarker.cpp b/WebCore/platform/graphics/svg/SVGResourceMarker.cpp
index 88f9bb0..2eea7a3 100644
--- a/WebCore/platform/graphics/svg/SVGResourceMarker.cpp
+++ b/WebCore/platform/graphics/svg/SVGResourceMarker.cpp
@@ -26,6 +26,8 @@
#include "config.h"
#include "SVGResourceMarker.h"
+#ifdef SVG_SUPPORT
+
#include "AffineTransform.h"
#include "GraphicsContext.h"
#include "RenderSVGContainer.h"
@@ -117,3 +119,5 @@
}
} // namespace WebCore
+
+#endif
diff --git a/WebCore/platform/graphics/svg/SVGResourceMarker.h b/WebCore/platform/graphics/svg/SVGResourceMarker.h
index 1b452c8..b96148e 100644
--- a/WebCore/platform/graphics/svg/SVGResourceMarker.h
+++ b/WebCore/platform/graphics/svg/SVGResourceMarker.h
@@ -26,6 +26,8 @@
#ifndef SVGResourceMarker_H
#define SVGResourceMarker_H
+#ifdef SVG_SUPPORT
+
#include "SVGResource.h"
namespace WebCore {
@@ -68,4 +70,6 @@
} // namespace WebCore
+#endif
+
#endif // SVGResourceMarker_H
diff --git a/WebCore/platform/graphics/svg/SVGResourceMasker.cpp b/WebCore/platform/graphics/svg/SVGResourceMasker.cpp
index 63e067b..12d85f4 100644
--- a/WebCore/platform/graphics/svg/SVGResourceMasker.cpp
+++ b/WebCore/platform/graphics/svg/SVGResourceMasker.cpp
@@ -26,6 +26,8 @@
#include "config.h"
#include "SVGResourceMasker.h"
+#ifdef SVG_SUPPORT
+
#include "TextStream.h"
#include "SVGResourceImage.h"
@@ -66,3 +68,5 @@
}
} // namespace WebCore
+
+#endif
diff --git a/WebCore/platform/graphics/svg/SVGResourceMasker.h b/WebCore/platform/graphics/svg/SVGResourceMasker.h
index 1c4f839..8e18f59 100644
--- a/WebCore/platform/graphics/svg/SVGResourceMasker.h
+++ b/WebCore/platform/graphics/svg/SVGResourceMasker.h
@@ -26,6 +26,8 @@
#ifndef SVGResourceMasker_H
#define SVGResourceMasker_H
+#ifdef SVG_SUPPORT
+
#include "SVGResource.h"
namespace WebCore {
@@ -55,4 +57,6 @@
} // namespace WebCore
+#endif
+
#endif // SVGResourceMasker_H
diff --git a/WebCore/platform/graphics/svg/cg/SVGResourceMaskerCg.h b/WebCore/platform/graphics/svg/cg/SVGResourceMaskerCg.h
index 4f7914b..8a0f35f 100644
--- a/WebCore/platform/graphics/svg/cg/SVGResourceMaskerCg.h
+++ b/WebCore/platform/graphics/svg/cg/SVGResourceMaskerCg.h
@@ -24,6 +24,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#ifdef SVG_SUPPORT
+
#include "KCanvasMasker.h"
#include "KCanvasImage.h"
@@ -37,3 +39,5 @@
};
}
+
+#endif
diff --git a/WebCore/platform/graphics/svg/qt/SVGResourceClipperQt.cpp b/WebCore/platform/graphics/svg/qt/SVGResourceClipperQt.cpp
index e5a71b8..8c3253d 100644
--- a/WebCore/platform/graphics/svg/qt/SVGResourceClipperQt.cpp
+++ b/WebCore/platform/graphics/svg/qt/SVGResourceClipperQt.cpp
@@ -24,6 +24,8 @@
#include "config.h"
#include "SVGResourceClipper.h"
+#ifdef SVG_SUPPORT
+
#include "KRenderingDeviceQt.h"
namespace WebCore {
@@ -115,4 +117,6 @@
} // namespace WebCore
+#endif
+
// vim:ts=4:noet
diff --git a/WebCore/platform/graphics/svg/qt/SVGResourceImageQt.cpp b/WebCore/platform/graphics/svg/qt/SVGResourceImageQt.cpp
index 3fcdbe3..1d919e2 100644
--- a/WebCore/platform/graphics/svg/qt/SVGResourceImageQt.cpp
+++ b/WebCore/platform/graphics/svg/qt/SVGResourceImageQt.cpp
@@ -22,6 +22,8 @@
#include "config.h"
#include "SVGResourceImage.h"
+#ifdef SVG_SUPPORT
+
#include "IntSize.h"
namespace WebCore {
@@ -46,4 +48,6 @@
} // namespace WebCore
+#endif
+
// vim:ts=4:noet
diff --git a/WebCore/platform/graphics/svg/qt/SVGResourceMaskerQt.cpp b/WebCore/platform/graphics/svg/qt/SVGResourceMaskerQt.cpp
index 5724a33..f56ac96 100644
--- a/WebCore/platform/graphics/svg/qt/SVGResourceMaskerQt.cpp
+++ b/WebCore/platform/graphics/svg/qt/SVGResourceMaskerQt.cpp
@@ -22,6 +22,8 @@
#include "config.h"
#include "SVGResourceMasker.h"
+#ifdef SVG_SUPPORT
+
namespace WebCore {
void SVGResourceMasker::applyMask(const FloatRect& boundingBox) const
@@ -31,4 +33,6 @@
} // namespace WebCore
+#endif
+
// vim:ts=4:noet