Make synthesize_presentational_hints_for_legacy_attributes be safe

This commit is contained in:
Anthony Ramine 2020-04-01 00:25:49 +02:00
parent 0c0027ecfd
commit ebd2892158
3 changed files with 6 additions and 12 deletions

View file

@ -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.