OLD | NEW |
---|---|
(Empty) | |
1 #include "config.h" | |
haraken
2013/08/01 13:32:20
Please add a copyright.
kouhei (in TOK)
2013/08/02 03:26:57
Done.
| |
2 #include "V8NodeIterator.h" | |
3 | |
4 #include "V8NodeFilter.h" | |
haraken
2013/08/01 13:32:20
This is not needed.
kouhei (in TOK)
2013/08/02 03:26:57
Won't compile without this file.
| |
5 #include "bindings/v8/V8Binding.h" | |
6 #include "bindings/v8/V8HiddenPropertyName.h" | |
7 #include "bindings/v8/V8Utilities.h" | |
haraken
2013/08/01 13:32:20
This wouldn't be needed. Please be careful not to
kouhei (in TOK)
2013/08/02 03:26:57
Done.
| |
8 #include "core/dom/Node.h" | |
haraken
2013/08/01 13:32:20
Ditto.
kouhei (in TOK)
2013/08/02 03:26:57
Won't compile without this file.
| |
9 #include "core/dom/NodeIterator.h" | |
haraken
2013/08/01 13:32:20
Ditto.
kouhei (in TOK)
2013/08/02 03:26:57
Done.
| |
10 | |
11 #include "wtf/RefPtr.h" | |
haraken
2013/08/01 13:32:20
Ditto.
kouhei (in TOK)
2013/08/02 03:26:57
Done.
kouhei (in TOK)
2013/08/02 03:26:57
Done.
| |
12 | |
13 namespace WebCore { | |
14 | |
15 v8::Handle<v8::Object> wrap(NodeIterator* nodeIterator, v8::Handle<v8::Object> c reationContext, v8::Isolate* isolate) | |
16 { | |
17 ASSERT(nodeIterator); | |
18 ASSERT(DOMDataStore::getWrapper<V8NodeIterator>(nodeIterator, isolate).IsEmp ty()); | |
19 | |
20 v8::Handle<v8::Object> wrapper = V8NodeIterator::createWrapper(nodeIterator, creationContext, isolate); | |
21 | |
22 if (nodeIterator->filter()) | |
23 V8HiddenPropertyName::setNamedHiddenReference(wrapper, "filter", toV8(no deIterator->filter(), creationContext, isolate)); | |
24 | |
25 return wrapper; | |
26 } | |
27 | |
28 } // namespace WebCore | |
OLD | NEW |