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/layout_thread/dom_wrapper.rs | |
parent | 0c0027ecfdf380f6813d03a270428b62d42434e5 (diff) | |
download | servo-ebd289215852c0fe65ab9633d1bb83243ea6221b.tar.gz servo-ebd289215852c0fe65ab9633d1bb83243ea6221b.zip |
Make synthesize_presentational_hints_for_legacy_attributes be safe
Diffstat (limited to 'components/layout_thread/dom_wrapper.rs')
-rw-r--r-- | components/layout_thread/dom_wrapper.rs | 6 |
1 files changed, 2 insertions, 4 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. |