diff options
author | Anthony Ramine <nox@nox.paris> | 2020-03-31 21:24:07 +0200 |
---|---|---|
committer | Anthony Ramine <nox@nox.paris> | 2020-03-31 21:39:45 +0200 |
commit | 72c0771299151ce93f8178c84b1eb1d13c29a49c (patch) | |
tree | af51fa70be20e608b821f89471568e90719031c9 /components/layout_thread/dom_wrapper.rs | |
parent | e56191106693f5cbfd1978ead55d410cc43663a0 (diff) | |
download | servo-72c0771299151ce93f8178c84b1eb1d13c29a49c.tar.gz servo-72c0771299151ce93f8178c84b1eb1d13c29a49c.zip |
Make a bunch of LayoutDocumentHelpers be safe
The other methods are actually unsafe.
Diffstat (limited to 'components/layout_thread/dom_wrapper.rs')
-rw-r--r-- | components/layout_thread/dom_wrapper.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout_thread/dom_wrapper.rs b/components/layout_thread/dom_wrapper.rs index 2528a474211..7d3ad1e5c5a 100644 --- a/components/layout_thread/dom_wrapper.rs +++ b/components/layout_thread/dom_wrapper.rs @@ -345,11 +345,11 @@ impl<'ld> TDocument for ServoLayoutDocument<'ld> { } fn quirks_mode(&self) -> QuirksMode { - unsafe { self.document.quirks_mode() } + self.document.quirks_mode() } fn is_html_document(&self) -> bool { - unsafe { self.document.is_html_document_for_layout() } + self.document.is_html_document_for_layout() } } |