diff options
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; |