Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fc9c7a32 authored by Peiyong Lin's avatar Peiyong Lin Committed by android-build-merger
Browse files

[Rounded Corners] Set the bounds correctly. am: 8f16f41c

am: 30a56a7f

Change-Id: Id05864334c7b85140106b521eacc807a8377d8f5
parents 4a5108a9 30a56a7f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1804,7 +1804,8 @@ Layer::RoundedCornerState Layer::getRoundedCornerState() const {
        }
    }
    const float radius = getDrawingState().cornerRadius;
    return radius > 0 ? RoundedCornerState(getBounds(), radius) : RoundedCornerState();
    return radius > 0 ? RoundedCornerState(getCrop(getDrawingState()).toFloatRect(), radius)
                      : RoundedCornerState();
}

void Layer::commitChildList() {