aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/CodegenRust.py
diff options
context:
space:
mode:
authorMalisa Smith <malisa.tsmith@gmail.com>2016-07-21 14:12:45 -0700
committerMalisa Smith <malisa.tsmith@gmail.com>2016-07-21 19:19:12 -0700
commit56bdc002fc3171c08f95291d7d6abfcb88bb2104 (patch)
treed83e76ad95571f68a71c6ec702a5f9dc9ce532ca /components/script/dom/bindings/codegen/CodegenRust.py
parent4ae0897175143351439ff5b903d05a79c17e3725 (diff)
downloadservo-56bdc002fc3171c08f95291d7d6abfcb88bb2104.tar.gz
servo-56bdc002fc3171c08f95291d7d6abfcb88bb2104.zip
Union types now allow ByteString
Diffstat (limited to 'components/script/dom/bindings/codegen/CodegenRust.py')
-rw-r--r--components/script/dom/bindings/codegen/CodegenRust.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py
index 36dc8a3c380..8360dfc322a 100644
--- a/components/script/dom/bindings/codegen/CodegenRust.py
+++ b/components/script/dom/bindings/codegen/CodegenRust.py
@@ -2077,7 +2077,7 @@ def UnionTypes(descriptors, dictionaries, callbacks, config):
'dom::bindings::conversions::root_from_handlevalue',
'dom::bindings::error::throw_not_in_union',
'dom::bindings::js::Root',
- 'dom::bindings::str::{DOMString, USVString}',
+ 'dom::bindings::str::{ByteString, DOMString, USVString}',
'dom::types::*',
'js::jsapi::JSContext',
'js::jsapi::{HandleValue, MutableHandleValue}',
@@ -3754,6 +3754,9 @@ def getUnionTypeTemplateVars(type, descriptorProvider):
name = str(type)
# XXXjdm dunno about typeName here
typeName = "/*" + type.name + "*/"
+ elif type.isByteString():
+ name = type.name
+ typeName = "ByteString"
elif type.isDOMString():
name = type.name
typeName = "DOMString"