mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
Remove more stuff from layout_2020
This commit is contained in:
parent
9b4b02275e
commit
053e361e2f
8 changed files with 47 additions and 1079 deletions
|
@ -8,7 +8,6 @@ use crate::context::LayoutContext;
|
|||
use crate::display_list::items::OpaqueNode;
|
||||
use crate::ServoArc;
|
||||
use app_units::Au;
|
||||
use euclid::default::Rect;
|
||||
use script_layout_interface::wrapper_traits::{PseudoElementType, ThreadSafeLayoutNode};
|
||||
use serde::ser::{Serialize, SerializeStruct, Serializer};
|
||||
use style::logical_geometry::{LogicalMargin, LogicalRect};
|
||||
|
@ -98,13 +97,3 @@ impl Fragment {
|
|||
true
|
||||
}
|
||||
}
|
||||
|
||||
/// A top-down fragment border box iteration handler.
|
||||
pub trait FragmentBorderBoxIterator {
|
||||
/// The operation to perform.
|
||||
fn process(&mut self, fragment: &Fragment, level: i32, overflow: &Rect<Au>);
|
||||
|
||||
/// Returns true if this fragment must be processed in-order. If this returns false,
|
||||
/// we skip the operation for this fragment, but continue processing siblings.
|
||||
fn should_process(&mut self, fragment: &Fragment) -> bool;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue