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/block.rs | |
parent | 55a93107ce4f4f796247e128a604dd35d92ac755 (diff) | |
download | servo-7414edab057dead8735dc0baa62e5e47456e03e1.tar.gz servo-7414edab057dead8735dc0baa62e5e47456e03e1.zip |
Move DISPLAY_PORT_SIZE_FACTOR to block.rs.
Diffstat (limited to 'components/layout/block.rs')
-rw-r--r-- | components/layout/block.rs | 4 |
1 files changed, 3 insertions, 1 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 { |