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 21 matching lines...) Expand all Loading... |
32 #include "core/dom/Node.h" | 32 #include "core/dom/Node.h" |
33 | 33 |
34 #include "V8Attr.h" | 34 #include "V8Attr.h" |
35 #include "V8CDATASection.h" | 35 #include "V8CDATASection.h" |
36 #include "V8Comment.h" | 36 #include "V8Comment.h" |
37 #include "V8Document.h" | 37 #include "V8Document.h" |
38 #include "V8DocumentFragment.h" | 38 #include "V8DocumentFragment.h" |
39 #include "V8DocumentType.h" | 39 #include "V8DocumentType.h" |
40 #include "V8Element.h" | 40 #include "V8Element.h" |
41 #include "V8Entity.h" | 41 #include "V8Entity.h" |
42 #include "V8EntityReference.h" | |
43 #include "V8HTMLElement.h" | 42 #include "V8HTMLElement.h" |
44 #include "V8Node.h" | 43 #include "V8Node.h" |
45 #include "V8Notation.h" | 44 #include "V8Notation.h" |
46 #include "V8ProcessingInstruction.h" | 45 #include "V8ProcessingInstruction.h" |
47 #include "V8Text.h" | 46 #include "V8Text.h" |
48 #include "bindings/v8/V8AbstractEventListener.h" | 47 #include "bindings/v8/V8AbstractEventListener.h" |
49 #include "bindings/v8/V8Binding.h" | 48 #include "bindings/v8/V8Binding.h" |
50 #include "bindings/v8/V8EventListener.h" | 49 #include "bindings/v8/V8EventListener.h" |
51 #include "core/dom/Document.h" | 50 #include "core/dom/Document.h" |
52 #include "core/dom/EventListener.h" | 51 #include "core/dom/EventListener.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 if (impl->isSVGElement()) | 131 if (impl->isSVGElement()) |
133 return wrap(toSVGElement(impl), creationContext, isolate); | 132 return wrap(toSVGElement(impl), creationContext, isolate); |
134 #endif | 133 #endif |
135 return V8Element::createWrapper(toElement(impl), creationContext, isolat
e); | 134 return V8Element::createWrapper(toElement(impl), creationContext, isolat
e); |
136 case Node::ATTRIBUTE_NODE: | 135 case Node::ATTRIBUTE_NODE: |
137 return wrap(static_cast<Attr*>(impl), creationContext, isolate); | 136 return wrap(static_cast<Attr*>(impl), creationContext, isolate); |
138 case Node::TEXT_NODE: | 137 case Node::TEXT_NODE: |
139 return wrap(toText(impl), creationContext, isolate); | 138 return wrap(toText(impl), creationContext, isolate); |
140 case Node::CDATA_SECTION_NODE: | 139 case Node::CDATA_SECTION_NODE: |
141 return wrap(static_cast<CDATASection*>(impl), creationContext, isolate); | 140 return wrap(static_cast<CDATASection*>(impl), creationContext, isolate); |
142 case Node::ENTITY_REFERENCE_NODE: | |
143 return wrap(static_cast<EntityReference*>(impl), creationContext, isolat
e); | |
144 case Node::ENTITY_NODE: | 141 case Node::ENTITY_NODE: |
145 return wrap(static_cast<Entity*>(impl), creationContext, isolate); | 142 return wrap(static_cast<Entity*>(impl), creationContext, isolate); |
146 case Node::PROCESSING_INSTRUCTION_NODE: | 143 case Node::PROCESSING_INSTRUCTION_NODE: |
147 return wrap(static_cast<ProcessingInstruction*>(impl), creationContext,
isolate); | 144 return wrap(static_cast<ProcessingInstruction*>(impl), creationContext,
isolate); |
148 case Node::COMMENT_NODE: | 145 case Node::COMMENT_NODE: |
149 return wrap(static_cast<Comment*>(impl), creationContext, isolate); | 146 return wrap(static_cast<Comment*>(impl), creationContext, isolate); |
150 case Node::DOCUMENT_NODE: | 147 case Node::DOCUMENT_NODE: |
151 return wrap(toDocument(impl), creationContext, isolate); | 148 return wrap(toDocument(impl), creationContext, isolate); |
152 case Node::DOCUMENT_TYPE_NODE: | 149 case Node::DOCUMENT_TYPE_NODE: |
153 return wrap(static_cast<DocumentType*>(impl), creationContext, isolate); | 150 return wrap(static_cast<DocumentType*>(impl), creationContext, isolate); |
154 case Node::DOCUMENT_FRAGMENT_NODE: | 151 case Node::DOCUMENT_FRAGMENT_NODE: |
155 return wrap(static_cast<DocumentFragment*>(impl), creationContext, isola
te); | 152 return wrap(static_cast<DocumentFragment*>(impl), creationContext, isola
te); |
156 case Node::NOTATION_NODE: | 153 case Node::NOTATION_NODE: |
157 return wrap(static_cast<Notation*>(impl), creationContext, isolate); | 154 return wrap(static_cast<Notation*>(impl), creationContext, isolate); |
158 default: | 155 default: |
159 break; // XPATH_NAMESPACE_NODE | 156 break; // ENTITY_REFERENCE_NODE or XPATH_NAMESPACE_NODE |
160 } | 157 } |
161 return V8Node::createWrapper(impl, creationContext, isolate); | 158 return V8Node::createWrapper(impl, creationContext, isolate); |
162 } | 159 } |
163 } // namespace WebCore | 160 } // namespace WebCore |
OLD | NEW |