| Index: Source/bindings/scripts/CodeGeneratorV8.pm
|
| diff --git a/Source/bindings/scripts/CodeGeneratorV8.pm b/Source/bindings/scripts/CodeGeneratorV8.pm
|
| index 6dd476178a94a259375aba4d6bbd5d5f78ebfa03..3d903081b7da5b91443bab9bc566e5101a03d707 100644
|
| --- a/Source/bindings/scripts/CodeGeneratorV8.pm
|
| +++ b/Source/bindings/scripts/CodeGeneratorV8.pm
|
| @@ -440,6 +440,12 @@ sub AddIncludesForType
|
| }
|
|
|
| # additional includes (things needed to compile the bindings but not the header)
|
| + AddExtraIncludesForType($type);
|
| +}
|
| +
|
| +sub AddExtraIncludesForType
|
| +{
|
| + my $type = shift;
|
|
|
| if ($type eq "CanvasRenderingContext2D") {
|
| AddToImplIncludes("core/html/canvas/CanvasGradient.h");
|
| @@ -3314,7 +3320,7 @@ sub GenerateImplementation
|
| AddToImplIncludes("core/dom/ContextFeatures.h");
|
| AddToImplIncludes("RuntimeEnabledFeatures.h");
|
|
|
| - AddIncludesForType($interfaceName);
|
| + AddExtraIncludesForType($interfaceName);
|
|
|
| my $toActiveDOMObject = InheritsExtendedAttribute($interface, "ActiveDOMObject") ? "${v8InterfaceName}::toActiveDOMObject" : "0";
|
| my $toEventTarget = InheritsExtendedAttribute($interface, "EventTarget") ? "${v8InterfaceName}::toEventTarget" : "0";
|
|
|