aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/bindings/utils.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2013-07-27 14:28:05 -0400
committerJosh Matthews <josh@joshmatthews.net>2013-07-30 16:28:02 -0400
commit5546f2105bea0a3155a1090f3a9a8dfb65c7b47d (patch)
treef69dc2cc92dfdbd5db54c0f7c579b3f65ec43ff2 /src/components/script/dom/bindings/utils.rs
parentad8fa8b3d75b58102f75848b90ab4721a7cfcfce (diff)
downloadservo-5546f2105bea0a3155a1090f3a9a8dfb65c7b47d.tar.gz
servo-5546f2105bea0a3155a1090f3a9a8dfb65c7b47d.zip
Generate HTMLDocument bindings. Introduce invariant into generated bindings that associated DOM classes are named the same as their interfaces, so Event and Event_ need to be swapped.
Diffstat (limited to 'src/components/script/dom/bindings/utils.rs')
-rw-r--r--src/components/script/dom/bindings/utils.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/script/dom/bindings/utils.rs b/src/components/script/dom/bindings/utils.rs
index c2a0aad6633..47ab4633e60 100644
--- a/src/components/script/dom/bindings/utils.rs
+++ b/src/components/script/dom/bindings/utils.rs
@@ -91,6 +91,7 @@ extern fn InterfaceObjectToString(cx: *JSContext, _argc: uint, vp: *mut JSVal) -
}
}
+#[deriving(Clone)]
pub enum DOMString {
str(~str),
null_string
@@ -615,7 +616,7 @@ pub extern fn ThrowingConstructor(_cx: *JSContext, _argc: uint, _vp: *JSVal) ->
}
pub fn initialize_global(global: *JSObject) {
- let protoArray = @mut ([0 as *JSObject, ..23]); //XXXjdm PrototyepList::id::_ID_Count
+ let protoArray = @mut ([0 as *JSObject, ..24]); //XXXjdm PrototyepList::id::_ID_Count
unsafe {
//XXXjdm we should be storing the box pointer instead of the inner
let box = squirrel_away(protoArray);