Bug 1360241: Devirtualize nsIFrame::GetType. r=heycam

MozReview-Commit-ID: 5Nzhyta5Hle
This commit is contained in:
Emilio Cobos Álvarez
2017-04-30 17:30:08 +02:00
parent dd2cb6525c
commit 3731858edf
243 changed files with 1742 additions and 2624 deletions

View File

@@ -293,14 +293,13 @@ BasicTableLayoutStrategy::ComputeColumnIntrinsicISizes(nsRenderingContext* aRend
// If column has isize, column-group doesn't override isize.
if (colInfo.minCoord == 0 && colInfo.prefCoord == 0 &&
colInfo.prefPercent == 0.0f) {
NS_ASSERTION(colFrame->GetParent()->GetType() ==
nsGkAtoms::tableColGroupFrame,
"expected a column-group");
colInfo = GetColISizeInfo(aRenderingContext,
colFrame->GetParent(), wm);
colFrame->AddCoords(colInfo.minCoord, colInfo.prefCoord,
colInfo.hasSpecifiedISize);
colFrame->AddPrefPercent(colInfo.prefPercent);
NS_ASSERTION(colFrame->GetParent()->IsTableColGroupFrame(),
"expected a column-group");
colInfo =
GetColISizeInfo(aRenderingContext, colFrame->GetParent(), wm);
colFrame->AddCoords(
colInfo.minCoord, colInfo.prefCoord, colInfo.hasSpecifiedISize);
colFrame->AddPrefPercent(colInfo.prefPercent);
}
// Consider the contents of and the isizes on the cells without