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

Commit 8f16f41c authored by Peiyong Lin's avatar Peiyong Lin
Browse files

[Rounded Corners] Set the bounds correctly.

BUG: 125916918
Test: Verify with Youtube, Photos, Chrome and Camera.
Change-Id: I5cf550ac6751ce24bca7860b6f9014f0f98a14a3
parent 9055674c
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -1804,7 +1804,8 @@ Layer::RoundedCornerState Layer::getRoundedCornerState() const {
        }
        }
    }
    }
    const float radius = getDrawingState().cornerRadius;
    const float radius = getDrawingState().cornerRadius;
    return radius > 0 ? RoundedCornerState(getBounds(), radius) : RoundedCornerState();
    return radius > 0 ? RoundedCornerState(getCrop(getDrawingState()).toFloatRect(), radius)
                      : RoundedCornerState();
}
}


void Layer::commitChildList() {
void Layer::commitChildList() {