aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2015-12-14 00:53:21 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2015-12-14 00:53:21 +0100
commit4c99a85c736c54f9ecddbcb1a577309c4be38edf (patch)
tree7a2c79ff08b9d0b46bb1bb85334816aff28e67bb /components/script/dom
parent8bab1cd7a4634618d18985d273c6997984919ecc (diff)
downloadservo-4c99a85c736c54f9ecddbcb1a577309c4be38edf.tar.gz
servo-4c99a85c736c54f9ecddbcb1a577309c4be38edf.zip
Fix invalid dictionary inheritance
Diffstat (limited to 'components/script/dom')
-rw-r--r--components/script/dom/bindings/codegen/CodegenRust.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py
index f947b0b2f80..1e8033c7347 100644
--- a/components/script/dom/bindings/codegen/CodegenRust.py
+++ b/components/script/dom/bindings/codegen/CodegenRust.py
@@ -1011,7 +1011,8 @@ def getJSToNativeConversionInfo(type, descriptorProvider, failureCode=None,
# There are no nullable dictionaries
assert not type.nullable()
- typeName = CGDictionary.makeDictionaryName(type.inner)
+ typeName = "%s::%s" % (CGDictionary.makeModuleName(type.inner),
+ CGDictionary.makeDictionaryName(type.inner))
declType = CGGeneric(typeName)
template = ("match %s::new(cx, ${val}) {\n"
" Ok(dictionary) => dictionary,\n"