mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
script: Eliminate the phantom type in favor of just whitelisting methods
that layout can safely call. This is simpler. Currently, the set of methods is not safe, but I plan to lock it down more soon.
This commit is contained in:
parent
da4cff034b
commit
be69a503fe
96 changed files with 646 additions and 522 deletions
|
@ -21,14 +21,14 @@ impl DocumentFragment {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn new(document: AbstractDocument) -> AbstractNode<ScriptView> {
|
||||
pub fn new(document: AbstractDocument) -> AbstractNode {
|
||||
let node = DocumentFragment::new_inherited(document);
|
||||
Node::reflect_node(@mut node, document, DocumentFragmentBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
impl DocumentFragment {
|
||||
pub fn Constructor(owner: @mut Window) -> Fallible<AbstractNode<ScriptView>> {
|
||||
pub fn Constructor(owner: @mut Window) -> Fallible<AbstractNode> {
|
||||
Ok(DocumentFragment::new(owner.Document()))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue