aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmltablesectionelement.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2019-03-10 13:20:07 +0100
committerAnthony Ramine <n.oxyde@gmail.com>2019-03-10 17:51:35 +0100
commit5fe5e5d6debef5adf234b650ee1b758e683a5230 (patch)
treee4b761bb1bb074acbe6d580066ca54bd23a9c793 /components/script/dom/htmltablesectionelement.rs
parent7bdfad92a5a2bf34fcabb38f99789b3f5d7989af (diff)
downloadservo-5fe5e5d6debef5adf234b650ee1b758e683a5230.tar.gz
servo-5fe5e5d6debef5adf234b650ee1b758e683a5230.zip
Remove most RootedReference uses
We can replace all uses of RootedReference for Option<T> by Option::deref calls.
Diffstat (limited to 'components/script/dom/htmltablesectionelement.rs')
-rw-r--r--components/script/dom/htmltablesectionelement.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/htmltablesectionelement.rs b/components/script/dom/htmltablesectionelement.rs
index 744b7a31753..ff7dbcd3679 100644
--- a/components/script/dom/htmltablesectionelement.rs
+++ b/components/script/dom/htmltablesectionelement.rs
@@ -8,7 +8,7 @@ use crate::dom::bindings::codegen::Bindings::HTMLTableSectionElementBinding::{
use crate::dom::bindings::codegen::Bindings::NodeBinding::NodeMethods;
use crate::dom::bindings::error::{ErrorResult, Fallible};
use crate::dom::bindings::inheritance::Castable;
-use crate::dom::bindings::root::{DomRoot, LayoutDom, RootedReference};
+use crate::dom::bindings::root::{DomRoot, LayoutDom};
use crate::dom::bindings::str::DOMString;
use crate::dom::document::Document;
use crate::dom::element::{Element, RawLayoutElementHelpers};
@@ -58,7 +58,8 @@ impl HTMLTableSectionElement {
struct RowsFilter;
impl CollectionFilter for RowsFilter {
fn filter(&self, elem: &Element, root: &Node) -> bool {
- elem.is::<HTMLTableRowElement>() && elem.upcast::<Node>().GetParentNode().r() == Some(root)
+ elem.is::<HTMLTableRowElement>() &&
+ elem.upcast::<Node>().GetParentNode().deref() == Some(root)
}
}