mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 07:45:30 +00:00
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:
parent
dcea9bd78d
commit
67c799d523
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user