aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/node.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r--components/script/dom/node.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs
index 3fc51c10fff..20fb38fa00a 100644
--- a/components/script/dom/node.rs
+++ b/components/script/dom/node.rs
@@ -2606,13 +2606,7 @@ impl<'a> ::selectors::Node<&'a Element> for &'a Node {
}
fn is_document(&self) -> bool {
- // FIXME(zwarich): Remove this when UFCS lands and there is a better way
- // of disambiguating methods.
- fn is_document<'a, T: DocumentDerived>(this: &T) -> bool {
- this.is_document()
- }
-
- is_document(*self)
+ DocumentDerived::is_document(*self)
}
fn as_element(&self) -> Option<&'a Element> {