| 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 843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 854 print F <<END | 854 print F <<END |
| 855 | 855 |
| 856 #include "ContextFeatures.h" | 856 #include "ContextFeatures.h" |
| 857 #include "RuntimeEnabledFeatures.h" | 857 #include "RuntimeEnabledFeatures.h" |
| 858 | 858 |
| 859 #if ENABLE(CUSTOM_ELEMENTS) | 859 #if ENABLE(CUSTOM_ELEMENTS) |
| 860 #include "CustomElementConstructor.h" | 860 #include "CustomElementConstructor.h" |
| 861 #include "CustomElementRegistry.h" | 861 #include "CustomElementRegistry.h" |
| 862 #endif | 862 #endif |
| 863 | 863 |
| 864 #if ENABLE(DASHBOARD_SUPPORT) || ENABLE(VIDEO) | 864 #if ENABLE(VIDEO) |
| 865 #include "Document.h" | 865 #include "Document.h" |
| 866 #include "Settings.h" | 866 #include "Settings.h" |
| 867 #endif | 867 #endif |
| 868 | 868 |
| 869 namespace WebCore { | 869 namespace WebCore { |
| 870 | 870 |
| 871 using namespace $parameters{namespace}Names; | 871 using namespace $parameters{namespace}Names; |
| 872 | 872 |
| 873 END | 873 END |
| 874 ; | 874 ; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 914 print F ", HTMLFormElement* formElement" if $parameters{namespace} eq "HTML"; | 914 print F ", HTMLFormElement* formElement" if $parameters{namespace} eq "HTML"; |
| 915 print F ", bool createdByParser)\n{\n"; | 915 print F ", bool createdByParser)\n{\n"; |
| 916 | 916 |
| 917 print F <<END | 917 print F <<END |
| 918 if (!document) | 918 if (!document) |
| 919 return 0; | 919 return 0; |
| 920 | 920 |
| 921 END | 921 END |
| 922 ; | 922 ; |
| 923 | 923 |
| 924 if ($parameters{namespace} ne "HTML" and $parameters{namespace} ne "SVG") { | |
| 925 print F <<END | |
| 926 #if ENABLE(DASHBOARD_SUPPORT) | |
| 927 Settings* settings = document->settings(); | |
| 928 if (settings && settings->usesDashboardBackwardCompatibilityMode()) | |
| 929 return 0; | |
| 930 #endif | |
| 931 END | |
| 932 ; | |
| 933 | |
| 934 } | |
| 935 | |
| 936 print F <<END | 924 print F <<END |
| 937 #if ENABLE(CUSTOM_ELEMENTS) | 925 #if ENABLE(CUSTOM_ELEMENTS) |
| 938 if (document->registry()) { | 926 if (document->registry()) { |
| 939 if (RefPtr<CustomElementConstructor> constructor = document->registry()-
>find(nullQName(), qName)) { | 927 if (RefPtr<CustomElementConstructor> constructor = document->registry()-
>find(nullQName(), qName)) { |
| 940 RefPtr<Element> element = constructor->createElement(); | 928 RefPtr<Element> element = constructor->createElement(); |
| 941 ASSERT(element->is$parameters{namespace}Element()); | 929 ASSERT(element->is$parameters{namespace}Element()); |
| 942 return static_pointer_cast<$parameters{namespace}Element>(element.re
lease()); | 930 return static_pointer_cast<$parameters{namespace}Element>(element.re
lease()); |
| 943 } | 931 } |
| 944 } | 932 } |
| 945 #endif | 933 #endif |
| (...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1450 END | 1438 END |
| 1451 ; | 1439 ; |
| 1452 } | 1440 } |
| 1453 | 1441 |
| 1454 print F "#endif // $parameters{guardFactoryWith}\n\n" if $parameters{guardFa
ctoryWith}; | 1442 print F "#endif // $parameters{guardFactoryWith}\n\n" if $parameters{guardFa
ctoryWith}; |
| 1455 | 1443 |
| 1456 print F "#endif // $wrapperFactoryType$parameters{namespace}ElementWrapperFa
ctory_h\n"; | 1444 print F "#endif // $wrapperFactoryType$parameters{namespace}ElementWrapperFa
ctory_h\n"; |
| 1457 | 1445 |
| 1458 close F; | 1446 close F; |
| 1459 } | 1447 } |
| OLD | NEW |