Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(290)

Unified Diff: Source/bindings/v8/custom/V8NodeCustom.cpp

Issue 15338005: Remove ENABLE(SVG) from bindings/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/bindings/v8/custom/V8ElementCustom.cpp ('k') | Source/bindings/v8/custom/V8SVGDocumentCustom.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « Source/bindings/v8/custom/V8ElementCustom.cpp ('k') | Source/bindings/v8/custom/V8SVGDocumentCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698