mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
removing mutHeapJs references
changes as per comments
This commit is contained in:
parent
c62973b77b
commit
2996d3a413
7 changed files with 23 additions and 67 deletions
|
@ -8,14 +8,14 @@ use dom::bindings::codegen::Bindings::ErrorEventBinding::ErrorEventMethods;
|
|||
use dom::bindings::codegen::Bindings::EventBinding::EventMethods;
|
||||
use dom::bindings::error::Fallible;
|
||||
use dom::bindings::inheritance::Castable;
|
||||
use dom::bindings::js::{MutHeapJSVal, Root};
|
||||
use dom::bindings::js::Root;
|
||||
use dom::bindings::reflector::reflect_dom_object;
|
||||
use dom::bindings::str::DOMString;
|
||||
use dom::bindings::trace::RootedTraceableBox;
|
||||
use dom::event::{Event, EventBubbles, EventCancelable};
|
||||
use dom::globalscope::GlobalScope;
|
||||
use dom_struct::dom_struct;
|
||||
use js::jsapi::{HandleValue, JSContext};
|
||||
use js::jsapi::{Heap, HandleValue, JSContext};
|
||||
use js::jsval::JSVal;
|
||||
use servo_atoms::Atom;
|
||||
use std::cell::Cell;
|
||||
|
@ -28,7 +28,7 @@ pub struct ErrorEvent {
|
|||
lineno: Cell<u32>,
|
||||
colno: Cell<u32>,
|
||||
#[ignore_heap_size_of = "Defined in rust-mozjs"]
|
||||
error: MutHeapJSVal,
|
||||
error: Heap<JSVal>,
|
||||
}
|
||||
|
||||
impl ErrorEvent {
|
||||
|
@ -39,7 +39,7 @@ impl ErrorEvent {
|
|||
filename: DOMRefCell::new(DOMString::new()),
|
||||
lineno: Cell::new(0),
|
||||
colno: Cell::new(0),
|
||||
error: MutHeapJSVal::new()
|
||||
error: Heap::default()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue