From a1cd81752ca054fe3c7cd4cb0b64c1329f6803b6 Mon Sep 17 00:00:00 2001 From: "L. David Baron" Date: Mon, 7 May 2012 07:17:00 +0200 Subject: [PATCH] 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 : %ED%23%02%AFR%24tw%FE%96%D7%D3p%D8%87%F7gV%28L --- layout/generic/nsFontInflationData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/generic/nsFontInflationData.cpp b/layout/generic/nsFontInflationData.cpp index e7a9f76ab74f..27aec4dcc971 100644 --- a/layout/generic/nsFontInflationData.cpp +++ b/layout/generic/nsFontInflationData.cpp @@ -159,7 +159,7 @@ ComputeDescendantWidth(const nsHTMLReflowState& aAncestorReflowState, AutoInfallibleTArray frames; for (nsIFrame *f = aDescendantFrame; f != ancestorFrame; - f = f->GetParent()) { + f = f->GetParent()->GetFirstInFlow()) { frames.AppendElement(f); }