Add missing GetFirstInFlow() call that was causing a crash in ComputeDescendantWidth when printing with font inflation enabled (or a debug build). (Bug 751797) r=roc

--HG--
extra : transplant_source : %B5%FE%E5%DFaH%06%0F%3B%26%C0%E2%8B%3E4%F37%BFi-
This commit is contained in:
L. David Baron 2012-05-03 22:55:33 -04:00
parent 5d8ce3ee63
commit 3a1e49269e

View File

@ -219,7 +219,7 @@ nsFontInflationData::UpdateWidth(const nsHTMLReflowState &aReflowState)
lastInflatableDescendant,
bfc);
while (!nsLayoutUtils::IsContainerForFontSizeInflation(nca)) {
nca = nca->GetParent();
nca = nca->GetParent()->GetFirstInFlow();
}
nscoord newNCAWidth = ComputeDescendantWidth(aReflowState, nca);