diff options
author | Josh Matthews <josh@joshmatthews.net> | 2013-09-30 22:14:14 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2013-09-30 22:14:27 -0400 |
commit | cb826f99202f4539aa46b3fd07fbe557182b085a (patch) | |
tree | d83201b971f0c78a16dfd6a001a09cd5d58bfc7c /src/components/script/dom/htmldocument.rs | |
parent | 74c38595483ba35cd285ea3ee9e59e32b10bccf4 (diff) | |
download | servo-cb826f99202f4539aa46b3fd07fbe557182b085a.tar.gz servo-cb826f99202f4539aa46b3fd07fbe557182b085a.zip |
Make proxy bindings generate trace and finalization hooks.
Diffstat (limited to 'src/components/script/dom/htmldocument.rs')
-rw-r--r-- | src/components/script/dom/htmldocument.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/components/script/dom/htmldocument.rs b/src/components/script/dom/htmldocument.rs index 855231ea637..6e70ad236a5 100644 --- a/src/components/script/dom/htmldocument.rs +++ b/src/components/script/dom/htmldocument.rs @@ -3,7 +3,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ use dom::bindings::codegen::HTMLDocumentBinding; -use dom::bindings::utils::{DOMString, ErrorResult, Fallible}; +use dom::bindings::utils::{DOMString, ErrorResult, Fallible, Traceable}; use dom::bindings::utils::{CacheableWrapper, BindingObject, WrapperCache}; use dom::document::{AbstractDocument, Document, WrappableDocument, HTML}; use dom::element::HTMLHeadElementTypeId; @@ -11,7 +11,7 @@ use dom::htmlcollection::HTMLCollection; use dom::node::{AbstractNode, ScriptView, ElementNodeTypeId}; use dom::window::Window; -use js::jsapi::{JSObject, JSContext}; +use js::jsapi::{JSObject, JSContext, JSTracer}; use servo_util::tree::TreeNodeRef; @@ -212,3 +212,8 @@ impl BindingObject for HTMLDocument { } } +impl Traceable for HTMLDocument { + fn trace(&self, tracer: *mut JSTracer) { + self.parent.trace(tracer); + } +}
\ No newline at end of file |