Bug 763702, Part 1/2: Ensure font inflation bits are set during frame construction for root frame to prevent crash. [r=dbaron]

--HG--
extra : rebase_source : 50084348a42aa9e038196f39fea686ab21cf80a0
This commit is contained in:
Scott Johnson 2012-06-20 11:09:35 -05:00
parent dcea9bd78d
commit 67c799d523

View File

@ -499,7 +499,7 @@ nsFrame::Init(nsIContent* aContent,
mState |= NS_FRAME_MAY_BE_TRANSFORMED;
}
if (nsLayoutUtils::FontSizeInflationEnabled(PresContext())
if (nsLayoutUtils::FontSizeInflationEnabled(PresContext()) || !GetParent()
#ifdef DEBUG
// We have assertions that check inflation invariants even when
// font size inflation is not enabled.