mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Scope the allowed unsafe code in traversal.rs.
This commit is contained in:
parent
3e2c44114c
commit
4b08cea663
1 changed files with 2 additions and 2 deletions
|
@ -4,8 +4,6 @@
|
|||
|
||||
//! Traversals over the DOM and flow trees, running the layout computations.
|
||||
|
||||
#![allow(unsafe_code)]
|
||||
|
||||
use css::node_style::StyledNode;
|
||||
use css::matching::{ApplicableDeclarations, MatchMethods, StyleSharingResult};
|
||||
use construct::FlowConstructor;
|
||||
|
@ -152,6 +150,7 @@ pub struct RecalcStyleForNode<'a> {
|
|||
|
||||
impl<'a> PreorderDomTraversal for RecalcStyleForNode<'a> {
|
||||
#[inline]
|
||||
#[allow(unsafe_code)]
|
||||
fn process(&self, node: LayoutNode) {
|
||||
// Initialize layout data.
|
||||
//
|
||||
|
@ -244,6 +243,7 @@ pub struct ConstructFlows<'a> {
|
|||
|
||||
impl<'a> PostorderDomTraversal for ConstructFlows<'a> {
|
||||
#[inline]
|
||||
#[allow(unsafe_code)]
|
||||
fn process(&self, node: LayoutNode) {
|
||||
// Construct flows for this node.
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue