| OLD | NEW |
| 1 # Copyright (C) 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> | 1 # Copyright (C) 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> |
| 2 # Copyright (C) 2006 Anders Carlsson <andersca@mac.com> | 2 # Copyright (C) 2006 Anders Carlsson <andersca@mac.com> |
| 3 # Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 3 # Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
| 4 # Copyright (C) 2006 Alexey Proskuryakov <ap@webkit.org> | 4 # Copyright (C) 2006 Alexey Proskuryakov <ap@webkit.org> |
| 5 # Copyright (C) 2006 Apple Computer, Inc. | 5 # Copyright (C) 2006 Apple Computer, Inc. |
| 6 # Copyright (C) 2007, 2008, 2009, 2012 Google Inc. | 6 # Copyright (C) 2007, 2008, 2009, 2012 Google Inc. |
| 7 # Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> | 7 # Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> |
| 8 # Copyright (C) Research In Motion Limited 2010. All rights reserved. | 8 # Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 9 # Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 # Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 10 # Copyright (C) 2012 Ericsson AB. All rights reserved. | 10 # Copyright (C) 2012 Ericsson AB. All rights reserved. |
| (...skipping 2533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2544 $code .= $parameterCheckString; | 2544 $code .= $parameterCheckString; |
| 2545 | 2545 |
| 2546 if ($interface->extendedAttributes->{"ConstructorCallWith"}) { | 2546 if ($interface->extendedAttributes->{"ConstructorCallWith"}) { |
| 2547 if ($interface->extendedAttributes->{"ConstructorCallWith"} eq "ScriptEx
ecutionContext") { | 2547 if ($interface->extendedAttributes->{"ConstructorCallWith"} eq "ScriptEx
ecutionContext") { |
| 2548 push(@beforeArgumentList, "context"); | 2548 push(@beforeArgumentList, "context"); |
| 2549 $code .= "\n"; | 2549 $code .= "\n"; |
| 2550 $code .= " ScriptExecutionContext* context = getScriptExecutionCo
ntext();"; | 2550 $code .= " ScriptExecutionContext* context = getScriptExecutionCo
ntext();"; |
| 2551 } elsif ($interface->extendedAttributes->{"ConstructorCallWith"} eq "Doc
ument") { | 2551 } elsif ($interface->extendedAttributes->{"ConstructorCallWith"} eq "Doc
ument") { |
| 2552 push(@beforeArgumentList, "document"); | 2552 push(@beforeArgumentList, "document"); |
| 2553 $code .= "\n"; | 2553 $code .= "\n"; |
| 2554 $code .= " Document* document = toDocument(getScriptExecutionCont
ext());"; | 2554 $code .= " Document& document = *toDocument(getScriptExecutionCon
text());"; |
| 2555 } | 2555 } |
| 2556 } | 2556 } |
| 2557 | 2557 |
| 2558 if ($interface->extendedAttributes->{"ConstructorRaisesException"}) { | 2558 if ($interface->extendedAttributes->{"ConstructorRaisesException"}) { |
| 2559 push(@afterArgumentList, "es"); | 2559 push(@afterArgumentList, "es"); |
| 2560 } | 2560 } |
| 2561 | 2561 |
| 2562 my @argumentList; | 2562 my @argumentList; |
| 2563 my $index = 0; | 2563 my $index = 0; |
| 2564 foreach my $parameter (@{$function->parameters}) { | 2564 foreach my $parameter (@{$function->parameters}) { |
| (...skipping 3433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5998 if ($currentInterface->extendedAttributes->{$extendedAttribute}) { | 5998 if ($currentInterface->extendedAttributes->{$extendedAttribute}) { |
| 5999 $found = 1; | 5999 $found = 1; |
| 6000 } | 6000 } |
| 6001 return 1 if $found; | 6001 return 1 if $found; |
| 6002 }, 0); | 6002 }, 0); |
| 6003 | 6003 |
| 6004 return $found; | 6004 return $found; |
| 6005 } | 6005 } |
| 6006 | 6006 |
| 6007 1; | 6007 1; |
| OLD | NEW |