@@ -159,8 +159,9 @@ impl Backend {
159
159
return ;
160
160
}
161
161
162
- let clip_mask = ( !physical_bounds. is_within ( & clip_bounds) )
163
- . then_some ( clip_mask as & _ ) ;
162
+ let clip_mask = ( !physical_bounds
163
+ . is_within_strict ( & clip_bounds) )
164
+ . then_some ( clip_mask as & _ ) ;
164
165
165
166
let transform = tiny_skia:: Transform :: from_translate (
166
167
translation. x ,
@@ -378,8 +379,9 @@ impl Backend {
378
379
return ;
379
380
}
380
381
381
- let clip_mask = ( !physical_bounds. is_within ( & clip_bounds) )
382
- . then_some ( clip_mask as & _ ) ;
382
+ let clip_mask = ( !physical_bounds
383
+ . is_within_strict ( & clip_bounds) )
384
+ . then_some ( clip_mask as & _ ) ;
383
385
384
386
self . text_pipeline . draw_paragraph (
385
387
paragraph,
@@ -403,8 +405,9 @@ impl Backend {
403
405
return ;
404
406
}
405
407
406
- let clip_mask = ( !physical_bounds. is_within ( & clip_bounds) )
407
- . then_some ( clip_mask as & _ ) ;
408
+ let clip_mask = ( !physical_bounds
409
+ . is_within_strict ( & clip_bounds) )
410
+ . then_some ( clip_mask as & _ ) ;
408
411
409
412
self . text_pipeline . draw_editor (
410
413
editor,
@@ -434,8 +437,9 @@ impl Backend {
434
437
return ;
435
438
}
436
439
437
- let clip_mask = ( !physical_bounds. is_within ( & clip_bounds) )
438
- . then_some ( clip_mask as & _ ) ;
440
+ let clip_mask = ( !physical_bounds
441
+ . is_within_strict ( & clip_bounds) )
442
+ . then_some ( clip_mask as & _ ) ;
439
443
440
444
self . text_pipeline . draw_cached (
441
445
content,
@@ -465,8 +469,9 @@ impl Backend {
465
469
return ;
466
470
}
467
471
468
- let clip_mask = ( !physical_bounds. is_within ( & clip_bounds) )
469
- . then_some ( clip_mask as & _ ) ;
472
+ let clip_mask = ( !physical_bounds
473
+ . is_within_strict ( & clip_bounds) )
474
+ . then_some ( clip_mask as & _ ) ;
470
475
471
476
let transform = tiny_skia:: Transform :: from_translate (
472
477
translation. x ,
@@ -502,8 +507,9 @@ impl Backend {
502
507
return ;
503
508
}
504
509
505
- let clip_mask = ( !physical_bounds. is_within ( & clip_bounds) )
506
- . then_some ( clip_mask as & _ ) ;
510
+ let clip_mask = ( !physical_bounds
511
+ . is_within_strict ( & clip_bounds) )
512
+ . then_some ( clip_mask as & _ ) ;
507
513
508
514
self . vector_pipeline . draw (
509
515
handle,
@@ -539,8 +545,9 @@ impl Backend {
539
545
return ;
540
546
}
541
547
542
- let clip_mask = ( !physical_bounds. is_within ( & clip_bounds) )
543
- . then_some ( clip_mask as & _ ) ;
548
+ let clip_mask = ( !physical_bounds
549
+ . is_within_strict ( & clip_bounds) )
550
+ . then_some ( clip_mask as & _ ) ;
544
551
545
552
pixels. fill_path (
546
553
path,
@@ -572,8 +579,9 @@ impl Backend {
572
579
return ;
573
580
}
574
581
575
- let clip_mask = ( !physical_bounds. is_within ( & clip_bounds) )
576
- . then_some ( clip_mask as & _ ) ;
582
+ let clip_mask = ( !physical_bounds
583
+ . is_within_strict ( & clip_bounds) )
584
+ . then_some ( clip_mask as & _ ) ;
577
585
578
586
pixels. stroke_path (
579
587
path,
0 commit comments