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

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

[Rounded Corners] Set the bounds correctly.

am: 8f16f41c

Change-Id: I529095fca20413091d682da02d27e4c65e6617aa
parents 02743064 8f16f41c
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() {