diff options
author | John Reck <jreck@google.com> | 2010-11-04 15:07:22 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2010-11-09 11:38:15 -0800 |
commit | 932b2de0a6d6b6bc26a838374e7cb4f37d0a0854 (patch) | |
tree | 8d0a069d5472b6a7c08c5c673c462ef53f795216 /WebCore/bindings | |
parent | 3a36f97f22980239c7e03a1d5c046cc387c481ae (diff) | |
download | external_webkit-932b2de0a6d6b6bc26a838374e7cb4f37d0a0854.zip external_webkit-932b2de0a6d6b6bc26a838374e7cb4f37d0a0854.tar.gz external_webkit-932b2de0a6d6b6bc26a838374e7cb4f37d0a0854.tar.bz2 |
Merge Webkit at r70949: Fixed code generation
Cherry pick of: http://trac.webkit.org/changeset/71396
Change-Id: Ib8bfa183ff03608b8419fea5c267278966961071
Diffstat (limited to 'WebCore/bindings')
-rw-r--r-- | WebCore/bindings/scripts/CodeGeneratorV8.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/WebCore/bindings/scripts/CodeGeneratorV8.pm b/WebCore/bindings/scripts/CodeGeneratorV8.pm index 8cbd63d..cfb8a6d 100644 --- a/WebCore/bindings/scripts/CodeGeneratorV8.pm +++ b/WebCore/bindings/scripts/CodeGeneratorV8.pm @@ -281,6 +281,7 @@ sub GenerateHeader push(@headerContent, "\ntemplate<typename PODType> class V8SVGPODTypeWrapper;\n") if $podType; push(@headerContent, "\ntemplate<typename PropertyType> class SVGPropertyTearOff;\n") if $svgPropertyType; push(@headerContent, "\ntemplate<typename PropertyType> class SVGListPropertyTearOff;\n") if $svgListPropertyType; + push(@headerContent, "\nclass FloatRect;\n") if $svgPropertyType && $svgPropertyType eq "FloatRect"; push(@headerContent, "\nclass $className {\n"); my $nativeType = GetNativeTypeForConversions($dataNode, $interfaceName); @@ -926,6 +927,7 @@ END push(@implContentDecls, " return toV8(static_cast<$svgNativeType*>($result));\n"); } elsif ($codeGenerator->IsSVGTypeNeedingTearOff($attrType) and not $implClassName =~ /List$/) { $implIncludes{"V8$attrType.h"} = 1; + $implIncludes{"SVGPropertyTearOff.h"} = 1; my $svgNativeType = $codeGenerator->GetSVGTypeNeedingTearOff($attrType); push(@implContentDecls, " return toV8(WTF::getPtr(${svgNativeType}::create($result)));\n"); } elsif ($attrIsPodType) { |