| OLD | NEW |
| 1 {% from "macros.tmpl" import license %} | 1 {% from "macros.tmpl" import license %} |
| 2 {{ license() }} | 2 {{ license() }} |
| 3 | 3 |
| 4 #include "config.h" | 4 #include "config.h" |
| 5 #include "V8{{namespace}}ElementWrapperFactory.h" | 5 #include "V8{{namespace}}ElementWrapperFactory.h" |
| 6 | 6 |
| 7 #include "RuntimeEnabledFeatures.h" | |
| 8 #include "{{namespace}}Names.h" | 7 #include "{{namespace}}Names.h" |
| 9 #include "bindings/v8/CustomElementWrapper.h" | 8 #include "bindings/v8/CustomElementWrapper.h" |
| 10 {% for tag in tags|sort if tag.has_js_interface %} | 9 {% for tag in tags|sort if tag.has_js_interface %} |
| 11 #include "V8{{tag.interface}}.h" | 10 #include "V8{{tag.interface}}.h" |
| 12 {% endfor %} | 11 {% endfor %} |
| 13 {% for tag in tags|sort if tag.has_js_interface %} | 12 {% for tag in tags|sort if tag.has_js_interface %} |
| 14 #include "core/{{namespace|lower}}/{{tag.js_interface}}.h" | 13 #include "core/{{namespace|lower}}/{{tag.js_interface}}.h" |
| 15 {% endfor %} | 14 {% endfor %} |
| 16 #include "core/{{namespace|lower}}/{{fallback_js_interface}}.h" | 15 #include "core/{{namespace|lower}}/{{fallback_js_interface}}.h" |
| 17 #include "core/dom/ContextFeatures.h" | 16 #include "core/dom/ContextFeatures.h" |
| 18 #include "core/dom/Document.h" | 17 #include "core/dom/Document.h" |
| 19 #include "core/frame/Settings.h" | 18 #include "core/frame/Settings.h" |
| 19 #include "platform/RuntimeEnabledFeatures.h" |
| 20 #include "wtf/StdLibExtras.h" | 20 #include "wtf/StdLibExtras.h" |
| 21 | 21 |
| 22 namespace WebCore { | 22 namespace WebCore { |
| 23 | 23 |
| 24 using namespace {{namespace}}Names; | 24 using namespace {{namespace}}Names; |
| 25 | 25 |
| 26 typedef v8::Handle<v8::Object> (*Create{{namespace}}ElementWrapperFunction)({{na
mespace}}Element*, v8::Handle<v8::Object> creationContext, v8::Isolate*); | 26 typedef v8::Handle<v8::Object> (*Create{{namespace}}ElementWrapperFunction)({{na
mespace}}Element*, v8::Handle<v8::Object> creationContext, v8::Isolate*); |
| 27 | 27 |
| 28 static v8::Handle<v8::Object> create{{namespace}}ElementWrapper({{namespace}}Ele
ment*, v8::Handle<v8::Object>, v8::Isolate*) | 28 static v8::Handle<v8::Object> create{{namespace}}ElementWrapper({{namespace}}Ele
ment*, v8::Handle<v8::Object>, v8::Isolate*) |
| 29 { | 29 { |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 {% endfor %} | 88 {% endfor %} |
| 89 } | 89 } |
| 90 | 90 |
| 91 if (const WrapperTypeInfo* result = map.get(name.impl())) | 91 if (const WrapperTypeInfo* result = map.get(name.impl())) |
| 92 return result; | 92 return result; |
| 93 | 93 |
| 94 return &V8{{fallback_js_interface}}::wrapperTypeInfo; | 94 return &V8{{fallback_js_interface}}::wrapperTypeInfo; |
| 95 } | 95 } |
| 96 | 96 |
| 97 } | 97 } |
| OLD | NEW |