diff options
author | Ms2ger <Ms2ger@gmail.com> | 2016-06-17 13:05:22 +0100 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2016-06-20 21:23:43 +0200 |
commit | 7414edab057dead8735dc0baa62e5e47456e03e1 (patch) | |
tree | 7fd500471b5e0f74cf4924760cce7c57e0beac53 /components/layout | |
parent | 55a93107ce4f4f796247e128a604dd35d92ac755 (diff) | |
download | servo-7414edab057dead8735dc0baa62e5e47456e03e1.tar.gz servo-7414edab057dead8735dc0baa62e5e47456e03e1.zip |
Move DISPLAY_PORT_SIZE_FACTOR to block.rs.
Diffstat (limited to 'components/layout')
-rw-r--r-- | components/layout/block.rs | 4 | ||||
-rw-r--r-- | components/layout/layout_thread.rs | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/components/layout/block.rs b/components/layout/block.rs index 9fc527d98d5..f02cd54d5b8 100644 --- a/components/layout/block.rs +++ b/components/layout/block.rs @@ -46,7 +46,6 @@ use fragment::{CoordinateSystem, Fragment, FragmentBorderBoxIterator, HAS_LAYER, use gfx::display_list::{ClippingRegion, StackingContext}; use gfx_traits::{LayerId, StackingContextId}; use layout_debug; -use layout_thread::DISPLAY_PORT_SIZE_FACTOR; use model::{CollapsibleMargins, MaybeAuto, specified, specified_or_none}; use model::{self, IntrinsicISizes, MarginCollapseInfo}; use rustc_serialize::{Encodable, Encoder}; @@ -64,6 +63,9 @@ use style::values::computed::{LengthOrPercentage, LengthOrPercentageOrAuto}; use util::geometry::MAX_RECT; use util::print_tree::PrintTree; +/// The number of screens of data we're allowed to generate display lists for in each direction. +const DISPLAY_PORT_SIZE_FACTOR: i32 = 8; + /// Information specific to floated blocks. #[derive(Clone, RustcEncodable)] pub struct FloatedBlockInfo { diff --git a/components/layout/layout_thread.rs b/components/layout/layout_thread.rs index 7a2d0500241..3f8fabde24b 100644 --- a/components/layout/layout_thread.rs +++ b/components/layout/layout_thread.rs @@ -89,9 +89,6 @@ use webrender_helpers::{WebRenderDisplayListConverter, WebRenderFrameBuilder}; use webrender_traits; use wrapper::{LayoutNodeLayoutData, NonOpaqueStyleAndLayoutData}; -/// The number of screens of data we're allowed to generate display lists for in each direction. -pub const DISPLAY_PORT_SIZE_FACTOR: i32 = 8; - /// The number of screens we have to traverse before we decide to generate new display lists. const DISPLAY_PORT_THRESHOLD_SIZE_FACTOR: i32 = 4; |