mirror of
https://github.com/servo/servo.git
synced 2025-06-29 03:23:41 +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
|
@ -7,7 +7,7 @@ use dom::bindings::utils::{DOMString, ErrorResult};
|
|||
use dom::document::AbstractDocument;
|
||||
use dom::element::HTMLSourceElementTypeId;
|
||||
use dom::htmlelement::HTMLElement;
|
||||
use dom::node::{AbstractNode, Node, ScriptView};
|
||||
use dom::node::{AbstractNode, Node};
|
||||
|
||||
pub struct HTMLSourceElement {
|
||||
htmlelement: HTMLElement
|
||||
|
@ -20,7 +20,7 @@ impl HTMLSourceElement {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn new(localName: ~str, document: AbstractDocument) -> AbstractNode<ScriptView> {
|
||||
pub fn new(localName: ~str, document: AbstractDocument) -> AbstractNode {
|
||||
let element = HTMLSourceElement::new_inherited(localName, document);
|
||||
Node::reflect_node(@mut element, document, HTMLSourceElementBinding::Wrap)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue