diff options
author | Bruno de Oliveira Abinader <bruno.d@partner.samsung.com> | 2014-01-08 15:26:44 -0400 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno.d@partner.samsung.com> | 2014-01-08 16:44:47 -0400 |
commit | b5eba001efe209bb9f75c7eb61b8affc848bb2e8 (patch) | |
tree | 9355983b63cd777af74f47183a43b7332135c764 /src/components/script/dom/htmldocument.rs | |
parent | 728fb9a7dedf67445e7f12eafb314117efede70d (diff) | |
download | servo-b5eba001efe209bb9f75c7eb61b8affc848bb2e8.tar.gz servo-b5eba001efe209bb9f75c7eb61b8affc848bb2e8.zip |
Fix to avoid attribute name clash between Document/HTMLDocument
Use children() instead of traverse_preorder(), and avoid having
GetHead() in both Document and HTMLDocument.
Closes #1465.
Diffstat (limited to 'src/components/script/dom/htmldocument.rs')
-rw-r--r-- | src/components/script/dom/htmldocument.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/components/script/dom/htmldocument.rs b/src/components/script/dom/htmldocument.rs index 57a5c96b7bd..27b5969458e 100644 --- a/src/components/script/dom/htmldocument.rs +++ b/src/components/script/dom/htmldocument.rs @@ -33,14 +33,6 @@ impl HTMLDocument { } impl HTMLDocument { - pub fn GetHead(&self) -> Option<AbstractNode> { - self.parent.GetDocumentElement().and_then(|root| { - root.traverse_preorder().find(|child| { - child.type_id() == ElementNodeTypeId(HTMLHeadElementTypeId) - }) - }) - } - pub fn Images(&self) -> @mut HTMLCollection { self.parent.createHTMLCollection(|elem| eq_slice(elem.tag_name, "img")) } |