diff options
-rw-r--r-- | components/layout_thread/dom_wrapper.rs | 6 | ||||
-rw-r--r-- | components/layout_thread_2020/dom_wrapper.rs | 6 | ||||
-rw-r--r-- | components/script/dom/element.rs | 6 |
3 files changed, 6 insertions, 12 deletions
diff --git a/components/layout_thread/dom_wrapper.rs b/components/layout_thread/dom_wrapper.rs index db8d0ffc36d..e25c67b7f1c 100644 --- a/components/layout_thread/dom_wrapper.rs +++ b/components/layout_thread/dom_wrapper.rs @@ -639,10 +639,8 @@ impl<'le> TElement for ServoLayoutElement<'le> { ) where V: Push<ApplicableDeclarationBlock>, { - unsafe { - self.element - .synthesize_presentational_hints_for_legacy_attributes(hints); - } + self.element + .synthesize_presentational_hints_for_legacy_attributes(hints); } /// The shadow root this element is a host of. diff --git a/components/layout_thread_2020/dom_wrapper.rs b/components/layout_thread_2020/dom_wrapper.rs index bd187482ee5..3a1128cc46e 100644 --- a/components/layout_thread_2020/dom_wrapper.rs +++ b/components/layout_thread_2020/dom_wrapper.rs @@ -646,10 +646,8 @@ impl<'le> TElement for ServoLayoutElement<'le> { ) where V: Push<ApplicableDeclarationBlock>, { - unsafe { - self.element - .synthesize_presentational_hints_for_legacy_attributes(hints); - } + self.element + .synthesize_presentational_hints_for_legacy_attributes(hints); } /// The shadow root this element is a host of. diff --git a/components/script/dom/element.rs b/components/script/dom/element.rs index b59b342024f..fd5ef8e4ebb 100644 --- a/components/script/dom/element.rs +++ b/components/script/dom/element.rs @@ -567,8 +567,7 @@ pub trait LayoutElementHelpers<'dom> { fn has_class_for_layout(self, name: &Atom, case_sensitivity: CaseSensitivity) -> bool; fn get_classes_for_layout(self) -> Option<&'dom [Atom]>; - #[allow(unsafe_code)] - unsafe fn synthesize_presentational_hints_for_legacy_attributes<V>(self, _: &mut V) + fn synthesize_presentational_hints_for_legacy_attributes<V>(self, hints: &mut V) where V: Push<ApplicableDeclarationBlock>; fn get_colspan(self) -> u32; @@ -616,8 +615,7 @@ impl<'dom> LayoutElementHelpers<'dom> for LayoutDom<'dom, Element> { .map(|attr| attr.as_tokens().unwrap()) } - #[allow(unsafe_code)] - unsafe fn synthesize_presentational_hints_for_legacy_attributes<V>(self, hints: &mut V) + fn synthesize_presentational_hints_for_legacy_attributes<V>(self, hints: &mut V) where V: Push<ApplicableDeclarationBlock>, { |