Make a bunch of LayoutDocumentHelpers be safe

The other methods are actually unsafe.
This commit is contained in:
Anthony Ramine 2020-03-31 21:24:07 +02:00
parent e561911066
commit 72c0771299
3 changed files with 27 additions and 21 deletions

View file

@ -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()
}
}