mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Move DISPLAY_PORT_SIZE_FACTOR to block.rs.
This commit is contained in:
parent
55a93107ce
commit
7414edab05
2 changed files with 3 additions and 4 deletions
|
@ -46,7 +46,6 @@ use fragment::{CoordinateSystem, Fragment, FragmentBorderBoxIterator, HAS_LAYER,
|
||||||
use gfx::display_list::{ClippingRegion, StackingContext};
|
use gfx::display_list::{ClippingRegion, StackingContext};
|
||||||
use gfx_traits::{LayerId, StackingContextId};
|
use gfx_traits::{LayerId, StackingContextId};
|
||||||
use layout_debug;
|
use layout_debug;
|
||||||
use layout_thread::DISPLAY_PORT_SIZE_FACTOR;
|
|
||||||
use model::{CollapsibleMargins, MaybeAuto, specified, specified_or_none};
|
use model::{CollapsibleMargins, MaybeAuto, specified, specified_or_none};
|
||||||
use model::{self, IntrinsicISizes, MarginCollapseInfo};
|
use model::{self, IntrinsicISizes, MarginCollapseInfo};
|
||||||
use rustc_serialize::{Encodable, Encoder};
|
use rustc_serialize::{Encodable, Encoder};
|
||||||
|
@ -64,6 +63,9 @@ use style::values::computed::{LengthOrPercentage, LengthOrPercentageOrAuto};
|
||||||
use util::geometry::MAX_RECT;
|
use util::geometry::MAX_RECT;
|
||||||
use util::print_tree::PrintTree;
|
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.
|
/// Information specific to floated blocks.
|
||||||
#[derive(Clone, RustcEncodable)]
|
#[derive(Clone, RustcEncodable)]
|
||||||
pub struct FloatedBlockInfo {
|
pub struct FloatedBlockInfo {
|
||||||
|
|
|
@ -89,9 +89,6 @@ use webrender_helpers::{WebRenderDisplayListConverter, WebRenderFrameBuilder};
|
||||||
use webrender_traits;
|
use webrender_traits;
|
||||||
use wrapper::{LayoutNodeLayoutData, NonOpaqueStyleAndLayoutData};
|
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.
|
/// The number of screens we have to traverse before we decide to generate new display lists.
|
||||||
const DISPLAY_PORT_THRESHOLD_SIZE_FACTOR: i32 = 4;
|
const DISPLAY_PORT_THRESHOLD_SIZE_FACTOR: i32 = 4;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue