Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 5088735

Browse files
authored
Clip to clip_rect instead of paint bounds (#8183)
Otherwise, we'll have issues such as flutter/flutter#29070 The engine roll that includes this PR needs a tiny golden image update. Will do a manual roll.
1 parent 8818a6c commit 5088735

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flow/layers/clip_rect_layer.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ void ClipRectLayer::Paint(PaintContext& context) const {
4848
FML_DCHECK(needs_painting());
4949

5050
SkAutoCanvasRestore save(context.internal_nodes_canvas, true);
51-
context.internal_nodes_canvas->clipRect(paint_bounds(),
51+
context.internal_nodes_canvas->clipRect(clip_rect_,
5252
clip_behavior_ != Clip::hardEdge);
5353
if (clip_behavior_ == Clip::antiAliasWithSaveLayer) {
54-
context.internal_nodes_canvas->saveLayer(paint_bounds(), nullptr);
54+
context.internal_nodes_canvas->saveLayer(clip_rect_, nullptr);
5555
}
5656
PaintChildren(context);
5757
if (clip_behavior_ == Clip::antiAliasWithSaveLayer) {

0 commit comments

Comments
 (0)