mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Replaced ZERO_RECT with Rect::zero()
This commit is contained in:
parent
8b95d7b8d8
commit
546d2f564f
6 changed files with 8 additions and 22 deletions
|
@ -43,7 +43,7 @@ use style::properties::ComputedValues;
|
|||
use text::TextRun;
|
||||
use text::glyph::CharIndex;
|
||||
use util::cursor::Cursor;
|
||||
use util::geometry::{self, MAX_RECT, ZERO_RECT};
|
||||
use util::geometry::{self, MAX_RECT};
|
||||
use util::linked_list::prepend_from;
|
||||
use util::mem::HeapSizeOf;
|
||||
use util::opts;
|
||||
|
@ -1043,7 +1043,7 @@ impl ClippingRegion {
|
|||
#[inline]
|
||||
pub fn empty() -> ClippingRegion {
|
||||
ClippingRegion {
|
||||
main: ZERO_RECT,
|
||||
main: Rect::zero(),
|
||||
complex: Vec::new(),
|
||||
}
|
||||
}
|
||||
|
@ -1073,7 +1073,7 @@ impl ClippingRegion {
|
|||
#[inline]
|
||||
pub fn intersect_rect(self, rect: &Rect<Au>) -> ClippingRegion {
|
||||
ClippingRegion {
|
||||
main: self.main.intersection(rect).unwrap_or(ZERO_RECT),
|
||||
main: self.main.intersection(rect).unwrap_or(Rect::zero()),
|
||||
complex: self.complex,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue