Replaced ZERO_RECT with Rect::zero()

This commit is contained in:
Alexander Mankuta 2015-12-03 15:39:30 +02:00
parent 8b95d7b8d8
commit 546d2f564f
6 changed files with 8 additions and 22 deletions

View file

@ -56,7 +56,6 @@ use table_colgroup::TableColGroupFlow;
use table_row::TableRowFlow;
use table_rowgroup::TableRowGroupFlow;
use table_wrapper::TableWrapperFlow;
use util::geometry::ZERO_RECT;
use util::logical_geometry::{LogicalRect, LogicalSize, WritingMode};
use util::print_tree::PrintTree;
use wrapper::{PseudoElementType, ThreadSafeLayoutNode};
@ -1054,7 +1053,7 @@ impl BaseFlow {
children: FlowList::new(),
intrinsic_inline_sizes: IntrinsicISizes::new(),
position: LogicalRect::zero(writing_mode),
overflow: ZERO_RECT,
overflow: Rect::zero(),
parallel: FlowParallelInfo::new(),
floats: Floats::new(writing_mode),
collapsible_margins: CollapsibleMargins::new(),

View file

@ -31,7 +31,6 @@ use style::values::computed::LengthOrPercentage;
use text;
use unicode_bidi;
use util;
use util::geometry::ZERO_RECT;
use util::logical_geometry::{LogicalRect, LogicalSize, WritingMode};
use util::print_tree::PrintTree;
use util::range::{Range, RangeIndex};
@ -1749,7 +1748,7 @@ impl Flow for InlineFlow {
fn repair_style(&mut self, _: &Arc<ComputedValues>) {}
fn compute_overflow(&self) -> Rect<Au> {
let mut overflow = ZERO_RECT;
let mut overflow = Rect::zero();
let flow_size = self.base.position.size.to_physical(self.base.writing_mode);
let relative_containing_block_size =
&self.base.early_absolute_position_info.relative_containing_block_size;

View file

@ -17,7 +17,6 @@ use std::fmt;
use std::sync::Arc;
use style::properties::ComputedValues;
use style::values::computed::LengthOrPercentageOrAuto;
use util::geometry::ZERO_RECT;
use util::logical_geometry::LogicalSize;
/// A table formatting context.
@ -96,7 +95,7 @@ impl Flow for TableColGroupFlow {
fn repair_style(&mut self, _: &Arc<ComputedValues>) {}
fn compute_overflow(&self) -> Rect<Au> {
ZERO_RECT
Rect::zero()
}
fn generated_containing_block_size(&self, _: OpaqueFlow) -> LogicalSize<Au> {