mirror of
https://github.com/servo/servo.git
synced 2025-10-07 12:09:23 +01:00
Use Traceable for primitive types and DOMString
This commit is contained in:
parent
dae6ad409d
commit
ee56b45a8c
5 changed files with 31 additions and 31 deletions
|
@ -66,7 +66,7 @@ pub struct Document {
|
|||
idmap: Traceable<RefCell<HashMap<DOMString, Vec<JS<Element>>>>>,
|
||||
pub implementation: Cell<Option<JS<DOMImplementation>>>,
|
||||
pub content_type: DOMString,
|
||||
pub encoding_name: Untraceable<RefCell<DOMString>>,
|
||||
pub encoding_name: Traceable<RefCell<DOMString>>,
|
||||
pub is_html_document: bool,
|
||||
pub url: Untraceable<Url>,
|
||||
pub quirks_mode: Untraceable<Cell<QuirksMode>>,
|
||||
|
@ -231,7 +231,7 @@ impl Document {
|
|||
// http://dom.spec.whatwg.org/#concept-document-quirks
|
||||
quirks_mode: Untraceable::new(Cell::new(NoQuirks)),
|
||||
// http://dom.spec.whatwg.org/#concept-document-encoding
|
||||
encoding_name: Untraceable::new(RefCell::new("utf-8".to_string())),
|
||||
encoding_name: Traceable::new(RefCell::new("utf-8".to_string())),
|
||||
is_html_document: is_html_document == HTMLDocument,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue