mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Remove reference counting from the Runtime implementation.
This commit is contained in:
parent
9abe47b76f
commit
cfe240d117
7 changed files with 17 additions and 15 deletions
|
@ -312,7 +312,7 @@ pub struct ScriptTask {
|
|||
devtools_marker_sender: RefCell<Option<Sender<TimelineMarker>>>,
|
||||
|
||||
/// The JavaScript runtime.
|
||||
js_runtime: Runtime,
|
||||
js_runtime: Rc<Runtime>,
|
||||
|
||||
mouse_over_targets: DOMRefCell<Vec<JS<Node>>>
|
||||
}
|
||||
|
@ -491,7 +491,7 @@ impl ScriptTask {
|
|||
devtools_markers: RefCell::new(HashSet::new()),
|
||||
devtools_marker_sender: RefCell::new(None),
|
||||
|
||||
js_runtime: runtime,
|
||||
js_runtime: Rc::new(runtime),
|
||||
mouse_over_targets: DOMRefCell::new(vec!())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue