Replaced ZERO_POINT with Point2D::zero()

This commit is contained in:
Alexander Mankuta 2015-12-03 15:52:52 +02:00
parent 3995a7672d
commit ee746e252c
7 changed files with 12 additions and 21 deletions

View file

@ -46,7 +46,6 @@ use text;
use text::TextRunScanner;
use url::Url;
use util;
use util::geometry::ZERO_POINT;
use util::logical_geometry::{LogicalMargin, LogicalRect, LogicalSize, WritingMode};
use util::range::*;
use util::str::slice_chars;
@ -2053,7 +2052,7 @@ impl Fragment {
relative_containing_block_size.to_physical(relative_containing_block_mode);
let border_box = self.border_box.to_physical(self.style.writing_mode, container_size);
if coordinate_system == CoordinateSystem::Own && self.establishes_stacking_context() {
return Rect::new(ZERO_POINT, border_box.size)
return Rect::new(Point2D::zero(), border_box.size)
}
// FIXME(pcwalton): This can double-count relative position sometimes for inlines (e.g.