diff options
author | Anthony Ramine <nox@nox.paris> | 2020-04-01 00:25:49 +0200 |
---|---|---|
committer | Anthony Ramine <nox@nox.paris> | 2020-04-01 11:40:55 +0200 |
commit | ebd289215852c0fe65ab9633d1bb83243ea6221b (patch) | |
tree | a4a9b8b3fa4eddd8a912463338e2aae70d3c2c4c /components/script/dom | |
parent | 0c0027ecfdf380f6813d03a270428b62d42434e5 (diff) | |
download | servo-ebd289215852c0fe65ab9633d1bb83243ea6221b.tar.gz servo-ebd289215852c0fe65ab9633d1bb83243ea6221b.zip |
Make synthesize_presentational_hints_for_legacy_attributes be safe
Diffstat (limited to 'components/script/dom')
-rw-r--r-- | components/script/dom/element.rs | 6 |
1 files changed, 2 insertions, 4 deletions
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>, { |