mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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
|
@ -8,7 +8,7 @@ use dom::document::AbstractDocument;
|
|||
use dom::element::HTMLFormElementTypeId;
|
||||
use dom::htmlcollection::HTMLCollection;
|
||||
use dom::htmlelement::HTMLElement;
|
||||
use dom::node::{AbstractNode, Node, ScriptView};
|
||||
use dom::node::{AbstractNode, Node};
|
||||
|
||||
pub struct HTMLFormElement {
|
||||
htmlelement: HTMLElement
|
||||
|
@ -21,7 +21,7 @@ impl HTMLFormElement {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn new(localName: ~str, document: AbstractDocument) -> AbstractNode<ScriptView> {
|
||||
pub fn new(localName: ~str, document: AbstractDocument) -> AbstractNode {
|
||||
let element = HTMLFormElement::new_inherited(localName, document);
|
||||
Node::reflect_node(@mut element, document, HTMLFormElementBinding::Wrap)
|
||||
}
|
||||
|
@ -120,7 +120,7 @@ impl HTMLFormElement {
|
|||
false
|
||||
}
|
||||
|
||||
pub fn IndexedGetter(&self, _index: u32, _found: &mut bool) -> AbstractNode<ScriptView> {
|
||||
pub fn IndexedGetter(&self, _index: u32, _found: &mut bool) -> AbstractNode {
|
||||
fail!("Not implemented.")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue