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 5816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5827 | 5827 |
5828 my $attributeName = GetImplName($attribute); | 5828 my $attributeName = GetImplName($attribute); |
5829 if ($attribute->extendedAttributes->{"ImplementedAs"}) { | 5829 if ($attribute->extendedAttributes->{"ImplementedAs"}) { |
5830 $attributeName = $attribute->extendedAttributes->{"ImplementedAs"}; | 5830 $attributeName = $attribute->extendedAttributes->{"ImplementedAs"}; |
5831 } | 5831 } |
5832 my $attributeType = $attribute->type; | 5832 my $attributeType = $attribute->type; |
5833 | 5833 |
5834 # Avoid clash with C++ keyword. | 5834 # Avoid clash with C++ keyword. |
5835 $attributeName = "_operator" if $attributeName eq "operator"; | 5835 $attributeName = "_operator" if $attributeName eq "operator"; |
5836 | 5836 |
5837 # SVGAElement defines a non-virtual "String& target() const" method which cl
ashes with "virtual String target() const" in Element. | |
5838 # To solve this issue the SVGAElement method was renamed to "svgTarget", tak
e care of that when calling this method. | |
5839 $attributeName = "svgTarget" if $attributeName eq "target" and $attributeTyp
e eq "SVGAnimatedString"; | |
5840 | |
5841 return $attributeName; | 5837 return $attributeName; |
5842 } | 5838 } |
5843 | 5839 |
5844 sub ContentAttributeName | 5840 sub ContentAttributeName |
5845 { | 5841 { |
5846 my ($interfaceName, $attribute) = @_; | 5842 my ($interfaceName, $attribute) = @_; |
5847 | 5843 |
5848 my $contentAttributeName = $attribute->extendedAttributes->{"Reflect"}; | 5844 my $contentAttributeName = $attribute->extendedAttributes->{"Reflect"}; |
5849 return undef if !$contentAttributeName; | 5845 return undef if !$contentAttributeName; |
5850 | 5846 |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6013 if ($currentInterface->extendedAttributes->{$extendedAttribute}) { | 6009 if ($currentInterface->extendedAttributes->{$extendedAttribute}) { |
6014 $found = 1; | 6010 $found = 1; |
6015 } | 6011 } |
6016 return 1 if $found; | 6012 return 1 if $found; |
6017 }, 0); | 6013 }, 0); |
6018 | 6014 |
6019 return $found; | 6015 return $found; |
6020 } | 6016 } |
6021 | 6017 |
6022 1; | 6018 1; |
OLD | NEW |