mirror of
https://github.com/servo/servo.git
synced 2025-06-24 17:14:33 +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::{Reflectable, Reflector, Traceable};
|
|||
use dom::document::{AbstractDocument, Document, HTML};
|
||||
use dom::element::HTMLHeadElementTypeId;
|
||||
use dom::htmlcollection::HTMLCollection;
|
||||
use dom::node::{AbstractNode, ScriptView, ElementNodeTypeId};
|
||||
use dom::node::{AbstractNode, ElementNodeTypeId};
|
||||
use dom::window::Window;
|
||||
|
||||
use js::jsapi::JSTracer;
|
||||
|
@ -32,7 +32,7 @@ impl HTMLDocument {
|
|||
}
|
||||
|
||||
impl HTMLDocument {
|
||||
pub fn GetHead(&self) -> Option<AbstractNode<ScriptView>> {
|
||||
pub fn GetHead(&self) -> Option<AbstractNode> {
|
||||
match self.parent.GetDocumentElement() {
|
||||
None => None,
|
||||
Some(root) => root.traverse_preorder().find(|child| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue