Bug 1300369 part 11 - Move nsLayoutUtils::ComputeISizeValue to a nsIFrame method (idempotent patch). r=dholbert
This commit is contained in:
@@ -69,9 +69,8 @@ FixedTableLayoutStrategy::GetMinISize(nsRenderingContext* aRenderingContext)
|
||||
nscoord spacing = mTableFrame->GetColSpacing(col);
|
||||
const nsStyleCoord *styleISize = &colFrame->StylePosition()->ISize(wm);
|
||||
if (styleISize->ConvertsToLength()) {
|
||||
result += nsLayoutUtils::ComputeISizeValue(aRenderingContext,
|
||||
colFrame, 0, 0, 0,
|
||||
*styleISize);
|
||||
result += colFrame->ComputeISizeValue(aRenderingContext,
|
||||
0, 0, 0, *styleISize);
|
||||
} else if (styleISize->GetUnit() == eStyleUnit_Percent) {
|
||||
// do nothing
|
||||
} else {
|
||||
@@ -213,9 +212,8 @@ FixedTableLayoutStrategy::ComputeColumnISizes(const ReflowInput& aReflowInput)
|
||||
const nsStyleCoord *styleISize = &colFrame->StylePosition()->ISize(wm);
|
||||
nscoord colISize;
|
||||
if (styleISize->ConvertsToLength()) {
|
||||
colISize = nsLayoutUtils::ComputeISizeValue(aReflowInput.mRenderingContext,
|
||||
colFrame, 0, 0, 0,
|
||||
*styleISize);
|
||||
colISize = colFrame->ComputeISizeValue(aReflowInput.mRenderingContext,
|
||||
0, 0, 0, *styleISize);
|
||||
specTotal += colISize;
|
||||
} else if (styleISize->GetUnit() == eStyleUnit_Percent) {
|
||||
float pct = styleISize->GetPercentValue();
|
||||
|
||||
Reference in New Issue
Block a user