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

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

Issue 23009004: Process Custom Elements in post-order. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing. Created 7 years, 4 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 842 matching lines...) Expand 10 before | Expand all | Expand 10 after
853 853
854 print F "\nPassRefPtr<$parameters{namespace}Element> $parameters{namespace}Eleme ntFactory::create$parameters{namespace}Element(const QualifiedName& qName, Docum ent* document"; 854 print F "\nPassRefPtr<$parameters{namespace}Element> $parameters{namespace}Eleme ntFactory::create$parameters{namespace}Element(const QualifiedName& qName, Docum ent* document";
855 print F ", HTMLFormElement* formElement" if $parameters{namespace} eq "HTML"; 855 print F ", HTMLFormElement* formElement" if $parameters{namespace} eq "HTML";
856 print F ", bool createdByParser)\n{\n"; 856 print F ", bool createdByParser)\n{\n";
857 857
858 print F <<END 858 print F <<END
859 if (!document) 859 if (!document)
860 return 0; 860 return 0;
861 861
862 if (CustomElement::isCustomTagName(qName.localName()) && document->registrat ionContext()) { 862 if (CustomElement::isCustomTagName(qName.localName()) && document->registrat ionContext()) {
863 RefPtr<Element> element = document->registrationContext()->createCustomT agElement(document, qName); 863 RefPtr<Element> element = document->registrationContext()->createCustomT agElement(document, qName, createdByParser ? CustomElementRegistrationContext::C reatedByParser : CustomElementRegistrationContext::NotCreatedByParser);
864 ASSERT_WITH_SECURITY_IMPLICATION(element->is$parameters{namespace}Elemen t()); 864 ASSERT_WITH_SECURITY_IMPLICATION(element->is$parameters{namespace}Elemen t());
865 return static_pointer_cast<$parameters{namespace}Element>(element.releas e()); 865 return static_pointer_cast<$parameters{namespace}Element>(element.releas e());
866 } 866 }
867 867
868 if (!gFunctionMap) 868 if (!gFunctionMap)
869 createFunctionMap(); 869 createFunctionMap();
870 if (ConstructorFunction function = gFunctionMap->get(qName.localName().impl( ))) { 870 if (ConstructorFunction function = gFunctionMap->get(qName.localName().impl( ))) {
871 END 871 END
872 ; 872 ;
873 873
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
1272 print F StaticString::GenerateStringImpls(\%parameters); 1272 print F StaticString::GenerateStringImpls(\%parameters);
1273 1273
1274 while ( my ($name, $identifier) = each %parameters ) { 1274 while ( my ($name, $identifier) = each %parameters ) {
1275 print F " new ((void*)&$name) AtomicString(${name}Impl);\n"; 1275 print F " new ((void*)&$name) AtomicString(${name}Impl);\n";
1276 } 1276 }
1277 1277
1278 print F "}\n}\n}\n"; 1278 print F "}\n}\n}\n";
1279 close F; 1279 close F;
1280 exit 0; 1280 exit 0;
1281 } 1281 }
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