зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1298008 Part 1: Update GeometryUtils::GetBoxRectForFrame to use GetMarginRectRelativeToSelf for margin boxes. r=dholbert
MozReview-Commit-ID: HpOi0TnqEgw --HG-- extra : rebase_source : a9bc4d4ab09961b0babdf862311a1d504d40bfc6
This commit is contained in:
Родитель
19d279bd7d
Коммит
512a439d30
|
@ -152,11 +152,7 @@ GetBoxRectForFrame(nsIFrame** aFrame, CSSBoxType aType)
|
||||||
case CSSBoxType::Content: r = f->GetContentRectRelativeToSelf(); break;
|
case CSSBoxType::Content: r = f->GetContentRectRelativeToSelf(); break;
|
||||||
case CSSBoxType::Padding: r = f->GetPaddingRectRelativeToSelf(); break;
|
case CSSBoxType::Padding: r = f->GetPaddingRectRelativeToSelf(); break;
|
||||||
case CSSBoxType::Border: r = nsRect(nsPoint(0, 0), f->GetSize()); break;
|
case CSSBoxType::Border: r = nsRect(nsPoint(0, 0), f->GetSize()); break;
|
||||||
case CSSBoxType::Margin: {
|
case CSSBoxType::Margin: r = f->GetMarginRectRelativeToSelf(); break;
|
||||||
r = nsRect(nsPoint(0, 0), f->GetSize());
|
|
||||||
r.Inflate(f->GetUsedMargin());
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
default: MOZ_ASSERT(false, "unknown box type"); return r;
|
default: MOZ_ASSERT(false, "unknown box type"); return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче