Index: Source/bindings/v8/custom/V8DocumentCustom.cpp |
diff --git a/Source/bindings/v8/custom/V8DocumentCustom.cpp b/Source/bindings/v8/custom/V8DocumentCustom.cpp |
index 25beffe8df96964a52467b514201d5fd4f4fa41d..7e0d2da239eff068c3315c890b8a0ff6ff84328f 100644 |
--- a/Source/bindings/v8/custom/V8DocumentCustom.cpp |
+++ b/Source/bindings/v8/custom/V8DocumentCustom.cpp |
@@ -45,6 +45,7 @@ |
#include "V8DOMImplementation.h" |
#include "V8HTMLDocument.h" |
#include "V8Node.h" |
+#include "V8SVGDocument.h" |
#include "V8Touch.h" |
#include "V8TouchList.h" |
#include "V8WebGLRenderingContext.h" |
@@ -55,10 +56,6 @@ |
#include "bindings/v8/V8DOMWrapper.h" |
#include "bindings/v8/custom/V8CustomXPathNSResolver.h" |
-#if ENABLE(SVG) |
-#include "V8SVGDocument.h" |
-#endif |
- |
#include "wtf/RefPtr.h" |
namespace WebCore { |
@@ -93,10 +90,8 @@ v8::Handle<v8::Object> wrap(Document* impl, v8::Handle<v8::Object> creationConte |
ASSERT(impl); |
if (impl->isHTMLDocument()) |
return wrap(toHTMLDocument(impl), creationContext, isolate); |
-#if ENABLE(SVG) |
if (impl->isSVGDocument()) |
return wrap(toSVGDocument(impl), creationContext, isolate); |
-#endif |
v8::Handle<v8::Object> wrapper = V8Document::createWrapper(impl, creationContext, isolate); |
if (wrapper.IsEmpty()) |
return wrapper; |