| 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 1709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1720 } | 1720 } |
| 1721 | 1721 |
| 1722 END | 1722 END |
| 1723 $implementation{nameSpaceInternal}->add($code); | 1723 $implementation{nameSpaceInternal}->add($code); |
| 1724 } | 1724 } |
| 1725 | 1725 |
| 1726 sub GenerateCustomElementInvocationScopeIfNeeded | 1726 sub GenerateCustomElementInvocationScopeIfNeeded |
| 1727 { | 1727 { |
| 1728 my $code = ""; | 1728 my $code = ""; |
| 1729 my $ext = shift; | 1729 my $ext = shift; |
| 1730 my $annotation = $ext->{"CustomElementCallbacks"} || ""; | |
| 1731 | 1730 |
| 1732 if ($annotation eq "None") { | 1731 if ($ext->{"CustomElementCallbacks"} or $ext->{"Reflect"}) { |
| 1733 # Explicit CustomElementCallbacks=None overrides any other | |
| 1734 # heuristic. | |
| 1735 return $code; | |
| 1736 } | |
| 1737 | |
| 1738 if ($annotation eq "Enable" or $ext->{"Reflect"}) { | |
| 1739 AddToImplIncludes("core/dom/custom/CustomElementCallbackDispatcher.h"); | 1732 AddToImplIncludes("core/dom/custom/CustomElementCallbackDispatcher.h"); |
| 1740 $code .= <<END; | 1733 $code .= <<END; |
| 1741 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 1734 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 1742 END | 1735 END |
| 1743 } | 1736 } |
| 1744 return $code; | 1737 return $code; |
| 1745 } | 1738 } |
| 1746 | 1739 |
| 1747 sub GenerateNormalAttributeSetterCallback | 1740 sub GenerateNormalAttributeSetterCallback |
| 1748 { | 1741 { |
| (...skipping 4438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6187 | 6180 |
| 6188 return 1 if $interface->extendedAttributes->{"CustomToV8"}; | 6181 return 1 if $interface->extendedAttributes->{"CustomToV8"}; |
| 6189 return 1 if $interface->extendedAttributes->{"SpecialWrapFor"}; | 6182 return 1 if $interface->extendedAttributes->{"SpecialWrapFor"}; |
| 6190 return 1 if InheritsInterface($interface, "Document"); | 6183 return 1 if InheritsInterface($interface, "Document"); |
| 6191 return 1 if SVGTypeNeedsToHoldContextElement($interface->name); | 6184 return 1 if SVGTypeNeedsToHoldContextElement($interface->name); |
| 6192 | 6185 |
| 6193 return 0; | 6186 return 0; |
| 6194 } | 6187 } |
| 6195 | 6188 |
| 6196 1; | 6189 1; |
| OLD | NEW |