Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: Source/core/scripts/make_names.pl

Issue 14834002: Set a bit on Custom Elements on creation to simplify wrapping (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Now avoids hitting assert. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Node.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/core/dom/Node.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698