зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
3e96197e07
Коммит
8e6d3f8c97
|
@ -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
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче