mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +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::HTMLFieldSetElementTypeId;
|
||||
use dom::htmlcollection::HTMLCollection;
|
||||
use dom::htmlelement::HTMLElement;
|
||||
use dom::node::{AbstractNode, Node, ScriptView};
|
||||
use dom::node::{AbstractNode, Node};
|
||||
use dom::validitystate::ValidityState;
|
||||
|
||||
pub struct HTMLFieldSetElement {
|
||||
|
@ -22,7 +22,7 @@ impl HTMLFieldSetElement {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn new(localName: ~str, document: AbstractDocument) -> AbstractNode<ScriptView> {
|
||||
pub fn new(localName: ~str, document: AbstractDocument) -> AbstractNode {
|
||||
let element = HTMLFieldSetElement::new_inherited(localName, document);
|
||||
Node::reflect_node(@mut element, document, HTMLFieldSetElementBinding::Wrap)
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ impl HTMLFieldSetElement {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub fn GetForm(&self) -> Option<AbstractNode<ScriptView>> {
|
||||
pub fn GetForm(&self) -> Option<AbstractNode> {
|
||||
None
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue