mirror of
https://github.com/servo/servo.git
synced 2025-06-24 09:04:33 +01:00
Issue #888 - Node's owner document should never be None.
This commit is contained in:
parent
59d2d345c8
commit
04319fdb68
18 changed files with 144 additions and 135 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
use dom::bindings::utils::{DOMString, ErrorResult, Fallible};
|
||||
use dom::bindings::utils::{BindingObject, Reflectable, Reflector};
|
||||
use dom::document::AbstractDocument;
|
||||
use dom::node::{Node, NodeTypeId, ScriptView};
|
||||
use js::jsapi::{JSObject, JSContext};
|
||||
|
||||
|
@ -15,9 +16,9 @@ pub struct CharacterData {
|
|||
}
|
||||
|
||||
impl CharacterData {
|
||||
pub fn new(id: NodeTypeId, data: ~str) -> CharacterData {
|
||||
pub fn new(id: NodeTypeId, data: ~str, document: AbstractDocument) -> CharacterData {
|
||||
CharacterData {
|
||||
node: Node::new(id),
|
||||
node: Node::new(id, document),
|
||||
data: data
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue