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 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1146 | 1146 |
1147 if ($conditional) { | 1147 if ($conditional) { |
1148 print F "#endif\n"; | 1148 print F "#endif\n"; |
1149 } | 1149 } |
1150 } | 1150 } |
1151 | 1151 |
1152 print F <<END | 1152 print F <<END |
1153 } | 1153 } |
1154 | 1154 |
1155 Create$parameters{namespace}ElementWrapperFunction createWrapperFunction = m
ap.get(element->localName().impl()); | 1155 Create$parameters{namespace}ElementWrapperFunction createWrapperFunction = m
ap.get(element->localName().impl()); |
1156 if (CustomElementHelpers::isCustomElement(element)) | 1156 if (element->isCustomElement()) |
1157 return CustomElementHelpers::wrap(element, creationContext, isolate, Cus
tomElementHelpers::CreateWrapperFunction(createWrapperFunction)); | 1157 return CustomElementHelpers::wrap(element, creationContext, isolate, Cus
tomElementHelpers::CreateWrapperFunction(createWrapperFunction)); |
1158 if (createWrapperFunction) | 1158 if (createWrapperFunction) |
1159 { | 1159 { |
1160 END | 1160 END |
1161 ; | 1161 ; |
1162 if ($parameters{namespace} eq "HTML") { | 1162 if ($parameters{namespace} eq "HTML") { |
1163 print F <<END | 1163 print F <<END |
1164 if (createWrapperFunction == createHTMLElementWrapper) | 1164 if (createWrapperFunction == createHTMLElementWrapper) |
1165 return V8HTMLElement::createWrapper(element, creationContext, isolate
); | 1165 return V8HTMLElement::createWrapper(element, creationContext, isolate
); |
1166 END | 1166 END |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1259 } | 1259 } |
1260 } | 1260 } |
1261 END | 1261 END |
1262 ; | 1262 ; |
1263 print F "#endif // $parameters{guardFactoryWith}\n\n" if $parameters{guardFa
ctoryWith}; | 1263 print F "#endif // $parameters{guardFactoryWith}\n\n" if $parameters{guardFa
ctoryWith}; |
1264 | 1264 |
1265 print F "#endif // V8$parameters{namespace}ElementWrapperFactory_h\n"; | 1265 print F "#endif // V8$parameters{namespace}ElementWrapperFactory_h\n"; |
1266 | 1266 |
1267 close F; | 1267 close F; |
1268 } | 1268 } |
OLD | NEW |