Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove more stuff from layout_2020
  • Loading branch information
nox committed Aug 13, 2019
1 parent 9b4b022 commit 053e361
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 1,079 deletions.
53 changes: 0 additions & 53 deletions components/layout_2020/display_list/builder.rs

This file was deleted.

2 changes: 0 additions & 2 deletions components/layout_2020/display_list/mod.rs
Expand Up @@ -2,9 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */

pub use self::builder::IndexableText;
pub use self::webrender_helpers::WebRenderDisplayListConverter;

mod builder;
pub mod items;
mod webrender_helpers;
38 changes: 0 additions & 38 deletions components/layout_2020/flow.rs

This file was deleted.

30 changes: 0 additions & 30 deletions components/layout_2020/flow_ref.rs

This file was deleted.

11 changes: 0 additions & 11 deletions components/layout_2020/fragment.rs
Expand Up @@ -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};
Expand Down Expand Up @@ -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;
}
4 changes: 0 additions & 4 deletions components/layout_2020/lib.rs
Expand Up @@ -10,8 +10,6 @@ extern crate serde;
pub mod context;
pub mod data;
pub mod display_list;
pub mod flow;
pub mod flow_ref;
mod fragment;
pub mod opaque_node;
pub mod query;
Expand All @@ -21,6 +19,4 @@ pub mod wrapper;
// For unit tests:
pub use crate::fragment::Fragment;

// We can't use servo_arc for everything in layout, because the Flow stuff uses
// weak references.
use servo_arc::Arc as ServoArc;

0 comments on commit 053e361

Please sign in to comment.