зеркало из https://github.com/mozilla/gecko-dev.git
bug 15958(partial) - uses mComputedWidth instead of availableSize.width. r=buster; asked hook for permission, got no response.
This commit is contained in:
Родитель
633c13eced
Коммит
d660d6c031
|
@ -787,14 +787,14 @@ nscoord nsTableOuterFrame::ComputeAvailableTableWidth(const nsHTMLReflowState& a
|
|||
const nsStyleSpacing* spacing =
|
||||
(const nsStyleSpacing*)mStyleContext->GetStyleData(eStyleStruct_Spacing);
|
||||
nsMargin margin(0,0,0,0);
|
||||
// XXX handle percentages
|
||||
// XXX handle percentage margin
|
||||
spacing->GetMargin(margin);
|
||||
maxWidth = aReflowState.availableWidth - margin.left - margin.right;
|
||||
break;
|
||||
}
|
||||
|
||||
case eStyleUnit_Percent:
|
||||
maxWidth = (nscoord)((float)aReflowState.availableWidth * position->mWidth.GetPercentValue());
|
||||
maxWidth = aReflowState.mComputedWidth;
|
||||
break;
|
||||
|
||||
case eStyleUnit_Proportional:
|
||||
|
|
|
@ -787,14 +787,14 @@ nscoord nsTableOuterFrame::ComputeAvailableTableWidth(const nsHTMLReflowState& a
|
|||
const nsStyleSpacing* spacing =
|
||||
(const nsStyleSpacing*)mStyleContext->GetStyleData(eStyleStruct_Spacing);
|
||||
nsMargin margin(0,0,0,0);
|
||||
// XXX handle percentages
|
||||
// XXX handle percentage margin
|
||||
spacing->GetMargin(margin);
|
||||
maxWidth = aReflowState.availableWidth - margin.left - margin.right;
|
||||
break;
|
||||
}
|
||||
|
||||
case eStyleUnit_Percent:
|
||||
maxWidth = (nscoord)((float)aReflowState.availableWidth * position->mWidth.GetPercentValue());
|
||||
maxWidth = aReflowState.mComputedWidth;
|
||||
break;
|
||||
|
||||
case eStyleUnit_Proportional:
|
||||
|
|
Загрузка…
Ссылка в новой задаче