mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Use JSTraceable everywhere
This commit is contained in:
parent
85f79290a6
commit
cc44a3b064
133 changed files with 325 additions and 278 deletions
|
@ -18,14 +18,15 @@ use servo_util::str::DOMString;
|
|||
use std::cell::RefCell;
|
||||
use std::collections::hashmap::HashMap;
|
||||
|
||||
#[deriving(Encodable, Clone)]
|
||||
#[deriving(Clone)]
|
||||
#[jstraceable]
|
||||
#[must_root]
|
||||
pub enum FormDatum {
|
||||
StringData(DOMString),
|
||||
FileData(JS<File>)
|
||||
}
|
||||
|
||||
#[deriving(Encodable)]
|
||||
#[jstraceable]
|
||||
#[must_root]
|
||||
pub struct FormData {
|
||||
data: Traceable<RefCell<HashMap<DOMString, Vec<FormDatum>>>>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue