| OLD | NEW |
| 1 #!/usr/bin/perl -w | 1 #!/usr/bin/perl -w |
| 2 | 2 |
| 3 # Copyright (C) 2005, 2006, 2007, 2009 Apple Inc. All rights reserved. | 3 # Copyright (C) 2005, 2006, 2007, 2009 Apple Inc. All rights reserved. |
| 4 # Copyright (C) 2009, Julien Chaffraix <jchaffraix@webkit.org> | 4 # Copyright (C) 2009, Julien Chaffraix <jchaffraix@webkit.org> |
| 5 # Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmob
ile.com/) | 5 # Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmob
ile.com/) |
| 6 # Copyright (C) 2011 Ericsson AB. All rights reserved. | 6 # Copyright (C) 2011 Ericsson AB. All rights reserved. |
| 7 # | 7 # |
| 8 # Redistribution and use in source and binary forms, with or without | 8 # Redistribution and use in source and binary forms, with or without |
| 9 # modification, are permitted provided that the following conditions | 9 # modification, are permitted provided that the following conditions |
| 10 # are met: | 10 # are met: |
| (...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 885 | 885 |
| 886 print F "\nPassRefPtr<$parameters{namespace}Element> $parameters{namespace}Eleme
ntFactory::create$parameters{namespace}Element(const QualifiedName& qName, Docum
ent* document"; | 886 print F "\nPassRefPtr<$parameters{namespace}Element> $parameters{namespace}Eleme
ntFactory::create$parameters{namespace}Element(const QualifiedName& qName, Docum
ent* document"; |
| 887 print F ", HTMLFormElement* formElement" if $parameters{namespace} eq "HTML"; | 887 print F ", HTMLFormElement* formElement" if $parameters{namespace} eq "HTML"; |
| 888 print F ", bool createdByParser)\n{\n"; | 888 print F ", bool createdByParser)\n{\n"; |
| 889 | 889 |
| 890 print F <<END | 890 print F <<END |
| 891 if (!document) | 891 if (!document) |
| 892 return 0; | 892 return 0; |
| 893 | 893 |
| 894 if (RuntimeEnabledFeatures::customDOMElementsEnabled() && CustomElementRegis
try::isCustomTagName(qName.localName())) { | 894 if (RuntimeEnabledFeatures::customDOMElementsEnabled() && CustomElementRegis
try::isCustomTagName(qName.localName())) { |
| 895 RefPtr<Element> element = document->ensureCustomElementRegistry()->creat
eCustomTagElement(qName); | 895 RefPtr<Element> element = document->ensureCustomElementRegistry()->creat
eCustomTagElement(qName, createdByParser); |
| 896 ASSERT(element->is$parameters{namespace}Element()); | 896 ASSERT(element->is$parameters{namespace}Element()); |
| 897 return static_pointer_cast<$parameters{namespace}Element>(element.releas
e()); | 897 return static_pointer_cast<$parameters{namespace}Element>(element.releas
e()); |
| 898 } | 898 } |
| 899 | 899 |
| 900 if (!gFunctionMap) | 900 if (!gFunctionMap) |
| 901 createFunctionMap(); | 901 createFunctionMap(); |
| 902 if (ConstructorFunction function = gFunctionMap->get(qName.localName().impl(
))) { | 902 if (ConstructorFunction function = gFunctionMap->get(qName.localName().impl(
))) { |
| 903 END | 903 END |
| 904 ; | 904 ; |
| 905 | 905 |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1253 } | 1253 } |
| 1254 } | 1254 } |
| 1255 END | 1255 END |
| 1256 ; | 1256 ; |
| 1257 print F "#endif // $parameters{guardFactoryWith}\n\n" if $parameters{guardFa
ctoryWith}; | 1257 print F "#endif // $parameters{guardFactoryWith}\n\n" if $parameters{guardFa
ctoryWith}; |
| 1258 | 1258 |
| 1259 print F "#endif // V8$parameters{namespace}ElementWrapperFactory_h\n"; | 1259 print F "#endif // V8$parameters{namespace}ElementWrapperFactory_h\n"; |
| 1260 | 1260 |
| 1261 close F; | 1261 close F; |
| 1262 } | 1262 } |
| OLD | NEW |