OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007-2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2007-2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 30 matching lines...) Expand all Loading... |
41 #include "bindings/core/v8/V8DocumentFragment.h" | 41 #include "bindings/core/v8/V8DocumentFragment.h" |
42 #include "bindings/core/v8/V8DocumentType.h" | 42 #include "bindings/core/v8/V8DocumentType.h" |
43 #include "bindings/core/v8/V8Element.h" | 43 #include "bindings/core/v8/V8Element.h" |
44 #include "bindings/core/v8/V8EventListener.h" | 44 #include "bindings/core/v8/V8EventListener.h" |
45 #include "bindings/core/v8/V8HTMLElement.h" | 45 #include "bindings/core/v8/V8HTMLElement.h" |
46 #include "bindings/core/v8/V8ProcessingInstruction.h" | 46 #include "bindings/core/v8/V8ProcessingInstruction.h" |
47 #include "bindings/core/v8/V8SVGElement.h" | 47 #include "bindings/core/v8/V8SVGElement.h" |
48 #include "bindings/core/v8/V8ShadowRoot.h" | 48 #include "bindings/core/v8/V8ShadowRoot.h" |
49 #include "bindings/core/v8/V8Text.h" | 49 #include "bindings/core/v8/V8Text.h" |
50 #include "core/dom/Document.h" | 50 #include "core/dom/Document.h" |
51 #include "core/dom/custom/CustomElementCallbackDispatcher.h" | |
52 #include "core/dom/shadow/ShadowRoot.h" | 51 #include "core/dom/shadow/ShadowRoot.h" |
53 #include "core/events/EventListener.h" | 52 #include "core/events/EventListener.h" |
54 #include "wtf/RefPtr.h" | 53 #include "wtf/RefPtr.h" |
55 | 54 |
56 namespace blink { | 55 namespace blink { |
57 | 56 |
58 // These functions are custom to prevent a wrapper lookup of the return value wh
ich is always | 57 // These functions are custom to prevent a wrapper lookup of the return value wh
ich is always |
59 // part of the arguments. | 58 // part of the arguments. |
60 v8::Handle<v8::Object> wrap(Node* impl, v8::Handle<v8::Object> creationContext,
v8::Isolate* isolate) | 59 v8::Handle<v8::Object> wrap(Node* impl, v8::Handle<v8::Object> creationContext,
v8::Isolate* isolate) |
61 { | 60 { |
(...skipping 22 matching lines...) Expand all Loading... |
84 return wrap(toDocumentType(impl), creationContext, isolate); | 83 return wrap(toDocumentType(impl), creationContext, isolate); |
85 case Node::DOCUMENT_FRAGMENT_NODE: | 84 case Node::DOCUMENT_FRAGMENT_NODE: |
86 if (impl->isShadowRoot()) | 85 if (impl->isShadowRoot()) |
87 return wrap(toShadowRoot(impl), creationContext, isolate); | 86 return wrap(toShadowRoot(impl), creationContext, isolate); |
88 return wrap(toDocumentFragment(impl), creationContext, isolate); | 87 return wrap(toDocumentFragment(impl), creationContext, isolate); |
89 } | 88 } |
90 ASSERT_NOT_REACHED(); | 89 ASSERT_NOT_REACHED(); |
91 return V8Node::createWrapper(impl, creationContext, isolate); | 90 return V8Node::createWrapper(impl, creationContext, isolate); |
92 } | 91 } |
93 } // namespace blink | 92 } // namespace blink |
OLD | NEW |