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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 | 226 |
227 my %enumTypeHash = (); | 227 my %enumTypeHash = (); |
228 | 228 |
229 my %svgAttributesInHTMLHash = ("class" => 1, "id" => 1, "onabort" => 1, "onclick
" => 1, | 229 my %svgAttributesInHTMLHash = ("class" => 1, "id" => 1, "onabort" => 1, "onclick
" => 1, |
230 "onerror" => 1, "onload" => 1, "onmousedown" => 1
, | 230 "onerror" => 1, "onload" => 1, "onmousedown" => 1
, |
231 "onmouseenter" => 1, "onmouseleave" => 1, | 231 "onmouseenter" => 1, "onmouseleave" => 1, |
232 "onmousemove" => 1, "onmouseout" => 1, "onmouseov
er" => 1, | 232 "onmousemove" => 1, "onmouseout" => 1, "onmouseov
er" => 1, |
233 "onmouseup" => 1, "onresize" => 1, "onscroll" =>
1, | 233 "onmouseup" => 1, "onresize" => 1, "onscroll" =>
1, |
234 "onunload" => 1); | 234 "onunload" => 1); |
235 | 235 |
| 236 my %svgTypeNewPropertyImplementation = ( |
| 237 "SVGLength" => 1, |
| 238 "SVGLengthList" => 1, |
| 239 ); |
| 240 |
236 my %svgTypeNeedingTearOff = ( | 241 my %svgTypeNeedingTearOff = ( |
237 "SVGAngle" => "SVGPropertyTearOff<SVGAngle>", | 242 "SVGAngle" => "SVGPropertyTearOff<SVGAngle>", |
238 "SVGLength" => "SVGPropertyTearOff<SVGLength>", | |
239 "SVGLengthList" => "SVGListPropertyTearOff<SVGLengthList>", | |
240 "SVGMatrix" => "SVGMatrixTearOff", | 243 "SVGMatrix" => "SVGMatrixTearOff", |
241 "SVGNumber" => "SVGPropertyTearOff<SVGNumber>", | 244 "SVGNumber" => "SVGPropertyTearOff<SVGNumber>", |
242 "SVGNumberList" => "SVGListPropertyTearOff<SVGNumberList>", | 245 "SVGNumberList" => "SVGListPropertyTearOff<SVGNumberList>", |
243 "SVGPathSegList" => "SVGPathSegListPropertyTearOff", | 246 "SVGPathSegList" => "SVGPathSegListPropertyTearOff", |
244 "SVGPoint" => "SVGPropertyTearOff<SVGPoint>", | 247 "SVGPoint" => "SVGPropertyTearOff<SVGPoint>", |
245 "SVGPointList" => "SVGListPropertyTearOff<SVGPointList>", | 248 "SVGPointList" => "SVGListPropertyTearOff<SVGPointList>", |
246 "SVGPreserveAspectRatio" => "SVGPropertyTearOff<SVGPreserveAspectRatio>", | 249 "SVGPreserveAspectRatio" => "SVGPropertyTearOff<SVGPreserveAspectRatio>", |
247 "SVGRect" => "SVGPropertyTearOff<SVGRect>", | 250 "SVGRect" => "SVGPropertyTearOff<SVGRect>", |
248 "SVGStringList" => "SVGStaticListPropertyTearOff<SVGStringList>", | 251 "SVGStringList" => "SVGStaticListPropertyTearOff<SVGStringList>", |
249 "SVGTransform" => "SVGPropertyTearOff<SVGTransform>", | 252 "SVGTransform" => "SVGPropertyTearOff<SVGTransform>", |
(...skipping 5777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6027 } | 6030 } |
6028 | 6031 |
6029 $svgTypeNeedingTearOff =~ s/>//; | 6032 $svgTypeNeedingTearOff =~ s/>//; |
6030 return $svgTypeNeedingTearOff; | 6033 return $svgTypeNeedingTearOff; |
6031 } | 6034 } |
6032 | 6035 |
6033 sub IsSVGAnimatedType | 6036 sub IsSVGAnimatedType |
6034 { | 6037 { |
6035 my $type = shift; | 6038 my $type = shift; |
6036 | 6039 |
| 6040 return 0 if $svgTypeNewPropertyImplementation{$type}; |
| 6041 |
6037 return $type =~ /^SVGAnimated/; | 6042 return $type =~ /^SVGAnimated/; |
6038 } | 6043 } |
6039 | 6044 |
6040 sub SVGTypeNeedsToHoldContextElement | 6045 sub SVGTypeNeedsToHoldContextElement |
6041 { | 6046 { |
6042 my $type = shift; | 6047 my $type = shift; |
6043 | 6048 |
6044 return IsSVGTypeNeedingTearOff($type) || IsSVGAnimatedType($type); | 6049 return IsSVGTypeNeedingTearOff($type) || IsSVGAnimatedType($type); |
6045 } | 6050 } |
6046 | 6051 |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6401 if ($parameter->type eq "SerializedScriptValue") { | 6406 if ($parameter->type eq "SerializedScriptValue") { |
6402 return 1; | 6407 return 1; |
6403 } elsif (IsIntegerType($parameter->type)) { | 6408 } elsif (IsIntegerType($parameter->type)) { |
6404 return 1; | 6409 return 1; |
6405 } | 6410 } |
6406 } | 6411 } |
6407 return 0; | 6412 return 0; |
6408 } | 6413 } |
6409 | 6414 |
6410 1; | 6415 1; |
OLD | NEW |