aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/node.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2014-09-20 13:53:22 -0400
committerJosh Matthews <josh@joshmatthews.net>2014-09-20 13:53:22 -0400
commit2adc594e5d8babaadbe1a4e05a8f7d808313728f (patch)
tree82382f98fb57e2ac8084d53dbfbef8d9e5a8b361 /components/script/dom/node.rs
parent249638da8f01a66b98be857fba7755c8625480f5 (diff)
parent75813352320dd181561991b03212c039735d3663 (diff)
downloadservo-2adc594e5d8babaadbe1a4e05a8f7d808313728f.tar.gz
servo-2adc594e5d8babaadbe1a4e05a8f7d808313728f.zip
Merge pull request #3428 from Adenilson/moveIsVoidElement01
Move is_void() Element method together with the other struct methods.
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r--components/script/dom/node.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs
index db8c7456b28..a95123d0bc7 100644
--- a/components/script/dom/node.rs
+++ b/components/script/dom/node.rs
@@ -929,7 +929,7 @@ impl NodeIterator {
fn next_child<'b>(&self, node: JSRef<'b, Node>) -> Option<JSRef<'b, Node>> {
if !self.include_descendants_of_void && node.is_element() {
let elem: JSRef<Element> = ElementCast::to_ref(node).unwrap();
- if elem.deref().is_void() {
+ if elem.is_void() {
None
} else {
node.first_child().map(|child| (*child.root()).clone())