mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove TDocument from the style and layout crates.
The style system never actually does anything with the document. This allows us to remove a bunch of stubbing on the Gecko side and streamline some things on the Servo side in future patches.
This commit is contained in:
parent
b7eb36fa84
commit
dda2928386
6 changed files with 22 additions and 88 deletions
|
@ -10,7 +10,7 @@ use display_list_builder::DisplayListBuildState;
|
|||
use flow::{self, PreorderFlowTraversal};
|
||||
use flow::{CAN_BE_FRAGMENTED, Flow, ImmutableFlowUtils, PostorderFlowTraversal};
|
||||
use gfx::display_list::OpaqueNode;
|
||||
use script_layout_interface::wrapper_traits::{LayoutElement, LayoutNode, ThreadSafeLayoutNode};
|
||||
use script_layout_interface::wrapper_traits::{LayoutNode, ThreadSafeLayoutNode};
|
||||
use std::mem;
|
||||
use style::atomic_refcell::AtomicRefCell;
|
||||
use style::context::{LocalStyleContext, SharedStyleContext, StyleContext};
|
||||
|
@ -32,7 +32,7 @@ pub struct RecalcStyleAndConstructFlows<'lc> {
|
|||
#[allow(unsafe_code)]
|
||||
impl<'lc, N> DomTraversalContext<N> for RecalcStyleAndConstructFlows<'lc>
|
||||
where N: LayoutNode + TNode,
|
||||
N::ConcreteElement: LayoutElement
|
||||
N::ConcreteElement: TElement
|
||||
|
||||
{
|
||||
type SharedContext = SharedLayoutContext;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue