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 5827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5838 } | 5838 } |
5839 my $attributeType = $attribute->type; | 5839 my $attributeType = $attribute->type; |
5840 | 5840 |
5841 # Avoid clash with C++ keyword. | 5841 # Avoid clash with C++ keyword. |
5842 $attributeName = "_operator" if $attributeName eq "operator"; | 5842 $attributeName = "_operator" if $attributeName eq "operator"; |
5843 | 5843 |
5844 # SVGAElement defines a non-virtual "String& target() const" method which cl
ashes with "virtual String target() const" in Element. | 5844 # SVGAElement defines a non-virtual "String& target() const" method which cl
ashes with "virtual String target() const" in Element. |
5845 # To solve this issue the SVGAElement method was renamed to "svgTarget", tak
e care of that when calling this method. | 5845 # To solve this issue the SVGAElement method was renamed to "svgTarget", tak
e care of that when calling this method. |
5846 $attributeName = "svgTarget" if $attributeName eq "target" and $attributeTyp
e eq "SVGAnimatedString"; | 5846 $attributeName = "svgTarget" if $attributeName eq "target" and $attributeTyp
e eq "SVGAnimatedString"; |
5847 | 5847 |
5848 # SVG animated types need to use a special attribute name. | |
5849 # The rest of the special casing for SVG animated types is handled in the la
nguage-specific code generators. | |
5850 $attributeName .= "Animated" if IsSVGAnimatedType($attributeType); | |
5851 | |
5852 return $attributeName; | 5848 return $attributeName; |
5853 } | 5849 } |
5854 | 5850 |
5855 sub ContentAttributeName | 5851 sub ContentAttributeName |
5856 { | 5852 { |
5857 my ($interfaceName, $attribute) = @_; | 5853 my ($interfaceName, $attribute) = @_; |
5858 | 5854 |
5859 my $contentAttributeName = $attribute->extendedAttributes->{"Reflect"}; | 5855 my $contentAttributeName = $attribute->extendedAttributes->{"Reflect"}; |
5860 return undef if !$contentAttributeName; | 5856 return undef if !$contentAttributeName; |
5861 | 5857 |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6036 if ($currentInterface->extendedAttributes->{$extendedAttribute}) { | 6032 if ($currentInterface->extendedAttributes->{$extendedAttribute}) { |
6037 $found = 1; | 6033 $found = 1; |
6038 } | 6034 } |
6039 return 1 if $found; | 6035 return 1 if $found; |
6040 }, 0); | 6036 }, 0); |
6041 | 6037 |
6042 return $found; | 6038 return $found; |
6043 } | 6039 } |
6044 | 6040 |
6045 1; | 6041 1; |
OLD | NEW |