| 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 | 206 |
| 207 my %enumTypeHash = (); | 207 my %enumTypeHash = (); |
| 208 | 208 |
| 209 my %svgAttributesInHTMLHash = ("class" => 1, "id" => 1, "onabort" => 1, "onclick
" => 1, | 209 my %svgAttributesInHTMLHash = ("class" => 1, "id" => 1, "onabort" => 1, "onclick
" => 1, |
| 210 "onerror" => 1, "onload" => 1, "onmousedown" => 1
, | 210 "onerror" => 1, "onload" => 1, "onmousedown" => 1
, |
| 211 "onmouseenter" => 1, "onmouseleave" => 1, | 211 "onmouseenter" => 1, "onmouseleave" => 1, |
| 212 "onmousemove" => 1, "onmouseout" => 1, "onmouseov
er" => 1, | 212 "onmousemove" => 1, "onmouseout" => 1, "onmouseov
er" => 1, |
| 213 "onmouseup" => 1, "onresize" => 1, "onscroll" =>
1, | 213 "onmouseup" => 1, "onresize" => 1, "onscroll" =>
1, |
| 214 "onunload" => 1); | 214 "onunload" => 1); |
| 215 | 215 |
| 216 my %svgTypeNewPropertyImplementation = ( |
| 217 "SVGLength" => 1, |
| 218 "SVGLengthList" => 1, |
| 219 ); |
| 220 |
| 216 my %svgTypeNeedingTearOff = ( | 221 my %svgTypeNeedingTearOff = ( |
| 217 "SVGAngle" => "SVGPropertyTearOff<SVGAngle>", | 222 "SVGAngle" => "SVGPropertyTearOff<SVGAngle>", |
| 218 "SVGLength" => "SVGPropertyTearOff<SVGLength>", | |
| 219 "SVGLengthList" => "SVGListPropertyTearOff<SVGLengthList>", | |
| 220 "SVGMatrix" => "SVGMatrixTearOff", | 223 "SVGMatrix" => "SVGMatrixTearOff", |
| 221 "SVGNumber" => "SVGPropertyTearOff<SVGNumber>", | 224 "SVGNumber" => "SVGPropertyTearOff<SVGNumber>", |
| 222 "SVGNumberList" => "SVGListPropertyTearOff<SVGNumberList>", | 225 "SVGNumberList" => "SVGListPropertyTearOff<SVGNumberList>", |
| 223 "SVGPathSegList" => "SVGPathSegListPropertyTearOff", | 226 "SVGPathSegList" => "SVGPathSegListPropertyTearOff", |
| 224 "SVGPoint" => "SVGPropertyTearOff<SVGPoint>", | 227 "SVGPoint" => "SVGPropertyTearOff<SVGPoint>", |
| 225 "SVGPointList" => "SVGListPropertyTearOff<SVGPointList>", | 228 "SVGPointList" => "SVGListPropertyTearOff<SVGPointList>", |
| 226 "SVGPreserveAspectRatio" => "SVGPropertyTearOff<SVGPreserveAspectRatio>", | 229 "SVGPreserveAspectRatio" => "SVGPropertyTearOff<SVGPreserveAspectRatio>", |
| 227 "SVGRect" => "SVGPropertyTearOff<SVGRect>", | 230 "SVGRect" => "SVGPropertyTearOff<SVGRect>", |
| 228 "SVGStringList" => "SVGStaticListPropertyTearOff<SVGStringList>", | 231 "SVGStringList" => "SVGStaticListPropertyTearOff<SVGStringList>", |
| 229 "SVGTransform" => "SVGPropertyTearOff<SVGTransform>", | 232 "SVGTransform" => "SVGPropertyTearOff<SVGTransform>", |
| (...skipping 5844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6074 } | 6077 } |
| 6075 | 6078 |
| 6076 $svgTypeNeedingTearOff =~ s/>//; | 6079 $svgTypeNeedingTearOff =~ s/>//; |
| 6077 return $svgTypeNeedingTearOff; | 6080 return $svgTypeNeedingTearOff; |
| 6078 } | 6081 } |
| 6079 | 6082 |
| 6080 sub IsSVGAnimatedType | 6083 sub IsSVGAnimatedType |
| 6081 { | 6084 { |
| 6082 my $type = shift; | 6085 my $type = shift; |
| 6083 | 6086 |
| 6087 return 0 if $svgTypeNewPropertyImplementation{$type}; |
| 6088 |
| 6084 return $type =~ /^SVGAnimated/; | 6089 return $type =~ /^SVGAnimated/; |
| 6085 } | 6090 } |
| 6086 | 6091 |
| 6087 sub SVGTypeNeedsToHoldContextElement | 6092 sub SVGTypeNeedsToHoldContextElement |
| 6088 { | 6093 { |
| 6089 my $type = shift; | 6094 my $type = shift; |
| 6090 | 6095 |
| 6091 return IsSVGTypeNeedingTearOff($type) || IsSVGAnimatedType($type); | 6096 return IsSVGTypeNeedingTearOff($type) || IsSVGAnimatedType($type); |
| 6092 } | 6097 } |
| 6093 | 6098 |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6382 | 6387 |
| 6383 foreach my $parameter (@{$function->parameters}) { | 6388 foreach my $parameter (@{$function->parameters}) { |
| 6384 if ($parameter->type eq "SerializedScriptValue") { | 6389 if ($parameter->type eq "SerializedScriptValue") { |
| 6385 return 1; | 6390 return 1; |
| 6386 } | 6391 } |
| 6387 } | 6392 } |
| 6388 return 0; | 6393 return 0; |
| 6389 } | 6394 } |
| 6390 | 6395 |
| 6391 1; | 6396 1; |
| OLD | NEW |