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
|
@ -35,7 +35,7 @@ use std::{f32, mem, ptr};
|
|||
use style::computed_values::{border_style, filter, image_rendering, mix_blend_mode};
|
||||
use text::TextRun;
|
||||
use text::glyph::CharIndex;
|
||||
use util::geometry::{self, MAX_RECT, PagePx, ScreenPx, ZERO_POINT, ZERO_RECT};
|
||||
use util::geometry::{self, MAX_RECT, PagePx, ScreenPx, ZERO_POINT};
|
||||
use util::opts;
|
||||
use util::range::Range;
|
||||
|
||||
|
@ -1580,7 +1580,7 @@ impl<'a> PaintContext<'a> {
|
|||
let side_inflation = blur_radius * BLUR_INFLATION_FACTOR;
|
||||
let tile_box_bounds =
|
||||
geometry::f32_rect_to_au_rect(self.page_rect.to_untyped()).intersection(box_bounds)
|
||||
.unwrap_or(ZERO_RECT)
|
||||
.unwrap_or(Rect::zero())
|
||||
.inflate(side_inflation, side_inflation);
|
||||
TemporaryDrawTarget::from_bounds(&self.draw_target, &tile_box_bounds)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue