Index: Source/bindings/v8/custom/V8NodeCustom.cpp |
diff --git a/Source/bindings/v8/custom/V8NodeCustom.cpp b/Source/bindings/v8/custom/V8NodeCustom.cpp |
index 913bb3893f51b8187f8b120343de0640930e3ddb..b9fb5771dd374062c9c2cc08bb9ee74d92f9d616 100644 |
--- a/Source/bindings/v8/custom/V8NodeCustom.cpp |
+++ b/Source/bindings/v8/custom/V8NodeCustom.cpp |
@@ -43,6 +43,7 @@ |
#include "V8Node.h" |
#include "V8Notation.h" |
#include "V8ProcessingInstruction.h" |
+#include "V8SVGElement.h" |
#include "V8ShadowRoot.h" |
#include "V8Text.h" |
#include "bindings/v8/V8AbstractEventListener.h" |
@@ -53,10 +54,6 @@ |
#include "core/dom/shadow/ShadowRoot.h" |
#include "wtf/RefPtr.h" |
-#if ENABLE(SVG) |
-#include "V8SVGElement.h" |
-#endif |
- |
namespace WebCore { |
// This function is customized to take advantage of the optional 4th argument: AttachBehavior |
@@ -128,10 +125,8 @@ v8::Handle<v8::Object> wrap(Node* impl, v8::Handle<v8::Object> creationContext, |
// For performance reasons, this is inlined from V8Element::wrap and must remain in sync. |
if (impl->isHTMLElement()) |
return wrap(toHTMLElement(impl), creationContext, isolate); |
-#if ENABLE(SVG) |
if (impl->isSVGElement()) |
return wrap(toSVGElement(impl), creationContext, isolate); |
-#endif |
return V8Element::createWrapper(toElement(impl), creationContext, isolate); |
case Node::ATTRIBUTE_NODE: |
return wrap(static_cast<Attr*>(impl), creationContext, isolate); |