diff options
author | Anthony Ramine <nox@nox.paris> | 2020-03-31 18:30:42 +0200 |
---|---|---|
committer | Anthony Ramine <nox@nox.paris> | 2020-03-31 18:30:42 +0200 |
commit | 0bda1748230b4d54c274a014d770daf461fec50f (patch) | |
tree | 73109765d2928227616aadb19c9ef8f5648e06cf /components/script/dom/htmltablesectionelement.rs | |
parent | 3b504148d5d4fef9f651e73df90ad8c9e9fb09a5 (diff) | |
download | servo-0bda1748230b4d54c274a014d770daf461fec50f.tar.gz servo-0bda1748230b4d54c274a014d770daf461fec50f.zip |
Merge RawLayoutElementHelpers into LayoutElementHelpers
Diffstat (limited to 'components/script/dom/htmltablesectionelement.rs')
-rw-r--r-- | components/script/dom/htmltablesectionelement.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/htmltablesectionelement.rs b/components/script/dom/htmltablesectionelement.rs index 89e399c70c9..601e4da9c54 100644 --- a/components/script/dom/htmltablesectionelement.rs +++ b/components/script/dom/htmltablesectionelement.rs @@ -9,7 +9,7 @@ use crate::dom::bindings::inheritance::Castable; use crate::dom::bindings::root::{DomRoot, LayoutDom}; use crate::dom::bindings::str::DOMString; use crate::dom::document::Document; -use crate::dom::element::{Element, RawLayoutElementHelpers}; +use crate::dom::element::{Element, LayoutElementHelpers}; use crate::dom::htmlcollection::{CollectionFilter, HTMLCollection}; use crate::dom::htmlelement::HTMLElement; use crate::dom::htmltablerowelement::HTMLTableRowElement; @@ -91,7 +91,7 @@ pub trait HTMLTableSectionElementLayoutHelpers { impl HTMLTableSectionElementLayoutHelpers for LayoutDom<'_, HTMLTableSectionElement> { fn get_background_color(self) -> Option<RGBA> { unsafe { - (&*self.upcast::<Element>().unsafe_get()) + self.upcast::<Element>() .get_attr_for_layout(&ns!(), &local_name!("bgcolor")) .and_then(AttrValue::as_color) .cloned() |