diff options
author | Edit Balint <edbalint@inf.u-szeged.hu> | 2014-12-16 11:03:01 +0100 |
---|---|---|
committer | Edit Balint <edbalint@inf.u-szeged.hu> | 2014-12-16 11:03:01 +0100 |
commit | 3036c8d21d7e529e71d78898788f0c211a06967f (patch) | |
tree | 5698463830f1d294a66588473dba3cdaaab60d6b /components/script/dom/bindings/codegen | |
parent | fb5c1bef6fe48b7bd2c1dd9e73069d5b00b20aad (diff) | |
download | servo-3036c8d21d7e529e71d78898788f0c211a06967f.tar.gz servo-3036c8d21d7e529e71d78898788f0c211a06967f.zip |
Fixed codegen error regarding Uint8ClampedArray
Diffstat (limited to 'components/script/dom/bindings/codegen')
-rw-r--r-- | components/script/dom/bindings/codegen/CodegenRust.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py index fbb67e5bb9e..5ad8ab8b1b4 100644 --- a/components/script/dom/bindings/codegen/CodegenRust.py +++ b/components/script/dom/bindings/codegen/CodegenRust.py @@ -4020,8 +4020,7 @@ class CGInterfaceTrait(CGThing): elif m.isAttr() and not m.isStatic(): name = CGSpecializedGetter.makeNativeName(descriptor, m) infallible = 'infallible' in descriptor.getExtendedAttributes(m, getter=True) - needCx = typeNeedsCx(m.type) - yield name, attribute_arguments(needCx), return_type(descriptor, m.type, infallible) + yield name, attribute_arguments(typeNeedsCx(m.type, True)), return_type(descriptor, m.type, infallible) if not m.readonly: name = CGSpecializedSetter.makeNativeName(descriptor, m) @@ -4030,7 +4029,7 @@ class CGInterfaceTrait(CGThing): rettype = "()" else: rettype = "ErrorResult" - yield name, attribute_arguments(needCx, m.type), rettype + yield name, attribute_arguments(typeNeedsCx(m.type, False), m.type), rettype if descriptor.proxy: for name, operation in descriptor.operations.iteritems(): |