2011-05-03 Andrey Kosyakov <caseq@chromium.org>
[WebKit-https.git] / Source / WebCore / bindings / v8 / custom / V8NodeCustom.cpp
index 7507272c96dd0513f7291e2a71cffd14a6842c45..4ad13d4af7cfd5246f80f681acfc4996f904c5d7 100644 (file)
@@ -164,10 +164,9 @@ v8::Handle<v8::Value> toV8Slow(Node* impl, bool forceNewObject)
         return toV8(static_cast<DocumentType*>(impl), forceNewObject);
     case Node::DOCUMENT_FRAGMENT_NODE:
         return toV8(static_cast<DocumentFragment*>(impl), forceNewObject);
-    case Node::SHADOW_ROOT_NODE:
-        return toV8(static_cast<ShadowRoot*>(impl), forceNewObject);
     case Node::NOTATION_NODE:
         return toV8(static_cast<Notation*>(impl), forceNewObject);
+    case Node::SHADOW_ROOT_NODE: // There's no IDL class for ShadowRoot, fall-through to default and use Node instead.
     default: break; // XPATH_NAMESPACE_NODE
     }
     return V8Node::wrap(impl, forceNewObject);