aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2013-10-16 20:20:29 +0100
committerSimon Sapin <simon.sapin@exyr.org>2013-10-16 20:20:29 +0100
commitb0f694d5b0f8c6f7b5a3795650b6b51ec76176fb (patch)
tree876989de87b97f85b18d978a61d4517c4b3a75e6 /src/components/script
parent6d808fbdd0b1f1ed383752c85653ceb8370fe22d (diff)
downloadservo-b0f694d5b0f8c6f7b5a3795650b6b51ec76176fb.tar.gz
servo-b0f694d5b0f8c6f7b5a3795650b6b51ec76176fb.zip
CSS: Use libutil’s traits in Selector matching to not depend on libscript.
Diffstat (limited to 'src/components/script')
-rw-r--r--src/components/script/dom/node.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/dom/node.rs b/src/components/script/dom/node.rs
index db5ff6c88da..6d841922f97 100644
--- a/src/components/script/dom/node.rs
+++ b/src/components/script/dom/node.rs
@@ -155,7 +155,7 @@ impl<View> TreeNodeRef<Node<View>> for AbstractNode<View> {
self.transmute_mut(callback)
}
- fn is_element(self) -> bool {
+ fn is_element(&self) -> bool {
match self.type_id() {
ElementNodeTypeId(*) => true,
_ => false
@@ -165,7 +165,7 @@ impl<View> TreeNodeRef<Node<View>> for AbstractNode<View> {
impl<View> TreeNodeRefAsElement<Node<View>, Element> for AbstractNode<View> {
#[inline]
- fn with_imm_element_like<R>(self, f: &fn(&Element) -> R) -> R {
+ fn with_imm_element_like<R>(&self, f: &fn(&Element) -> R) -> R {
self.with_imm_element(f)
}
}