mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
parent
f5e97ef1b5
commit
9c11781880
20 changed files with 25 additions and 29 deletions
|
@ -710,7 +710,7 @@ fn write_image(draw_target: &DrawTarget,
|
|||
smoothing_enabled: bool,
|
||||
composition_op: CompositionOp,
|
||||
global_alpha: f32) {
|
||||
if image_data.len() == 0 {
|
||||
if image_data.is_empty() {
|
||||
return
|
||||
}
|
||||
let image_rect = Rect::new(Point2D::zero(), image_size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue