mirror of
https://github.com/servo/servo.git
synced 2025-06-08 08:33:26 +00:00
Make a bunch of LayoutDocumentHelpers be safe
The other methods are actually unsafe.
This commit is contained in:
parent
e561911066
commit
72c0771299
3 changed files with 27 additions and 21 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue