mirror of
https://github.com/servo/servo.git
synced 2025-06-20 15:18:58 +01:00
Make proxy bindings generate trace and finalization hooks.
This commit is contained in:
parent
74c3859548
commit
cb826f9920
4 changed files with 16 additions and 9 deletions
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue