mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Replace unsafe_blocks by unsafe_code.
This commit is contained in:
parent
4eb26065ac
commit
3479d3fa7f
53 changed files with 151 additions and 57 deletions
|
@ -689,12 +689,14 @@ pub enum DocumentSource {
|
|||
}
|
||||
|
||||
pub trait LayoutDocumentHelpers {
|
||||
#[allow(unsafe_code)]
|
||||
unsafe fn is_html_document_for_layout(&self) -> bool;
|
||||
}
|
||||
|
||||
impl LayoutDocumentHelpers for LayoutJS<Document> {
|
||||
#[allow(unrooted_must_root)]
|
||||
#[inline]
|
||||
#[allow(unsafe_code)]
|
||||
unsafe fn is_html_document_for_layout(&self) -> bool {
|
||||
(*self.unsafe_get()).is_html_document
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue