mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Combine DOM-related concepts in Layout 2020 into dom.rs
This commit is contained in:
parent
ab4bd2a133
commit
72b5fcd0b6
24 changed files with 257 additions and 344 deletions
|
@ -3,7 +3,7 @@
|
|||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use crate::context::LayoutContext;
|
||||
use crate::wrapper::GetStyleAndLayoutData;
|
||||
use crate::dom::NodeExt;
|
||||
use script_layout_interface::wrapper_traits::LayoutNode;
|
||||
use style::context::{SharedStyleContext, StyleContext};
|
||||
use style::data::ElementData;
|
||||
|
@ -33,7 +33,7 @@ impl<'a> RecalcStyle<'a> {
|
|||
impl<'a, 'dom, E> DomTraversal<E> for RecalcStyle<'a>
|
||||
where
|
||||
E: TElement,
|
||||
E::ConcreteNode: LayoutNode<'dom>,
|
||||
E::ConcreteNode: 'dom + LayoutNode<'dom>,
|
||||
{
|
||||
fn process_preorder<F>(
|
||||
&self,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue