Bug 1461046 Part 3: Change RoundedBoxShapeInfo to tolerate empty rects. r=dholbert

MozReview-Commit-ID: FNQwXdeqfua

--HG--
extra : rebase_source : 31b9a1174f1d2203b98e0b11dd9e0863863b63f5
This commit is contained in:
Brad Werth 2018-05-18 17:38:41 -07:00
parent 3e96197e07
commit 8e6d3f8c97

View File

@ -1084,7 +1084,13 @@ public:
const nscoord aBEnd) const override;
nscoord BStart() const override { return mRect.y; }
nscoord BEnd() const override { return mRect.YMost(); }
bool IsEmpty() const override { return mRect.IsEmpty(); }
bool IsEmpty() const override {
// A RoundedBoxShapeInfo is never empty, because if it is collapsed to
// zero area, it acts like a point. If it is collapsed further, to become
// inside-out, it acts like a rect in the same shape as the inside-out
// rect.
return false;
}
void Translate(nscoord aLineLeft, nscoord aBlockStart) override
{