Skip to content

Commit

Permalink
Bug 1461046 Part 3: Change RoundedBoxShapeInfo to tolerate empty rect…
Browse files Browse the repository at this point in the history
…s. r=dholbert

MozReview-Commit-ID: FNQwXdeqfua

--HG--
extra : rebase_source : bc9b97d5aef5bbece169ef1931523fb4f4a2e64f
  • Loading branch information
bradwerth committed May 19, 2018
1 parent cafe50b commit 73efe1c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion layout/generic/nsFloatManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,13 @@ class nsFloatManager::RoundedBoxShapeInfo final : public nsFloatManager::ShapeIn
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
{
Expand Down

0 comments on commit 73efe1c

Please sign in to comment.