forked from mirrors/gecko-dev
Bug 1676543 - Remove some invalid assertions. r=heycam
We might clear this flag in PostRebuildAllStyleData before actually flushing style, so if the timing is wrong you can hit this assertion. This doesn't impact correctness in any way that I can see. Differential Revision: https://phabricator.services.mozilla.com/D96685
This commit is contained in:
parent
e7ec1ff308
commit
643b53b90c
1 changed files with 0 additions and 2 deletions
|
|
@ -63,14 +63,12 @@ static FontUsageKind StyleFontUsage(nsIFrame* aFrame, ComputedStyle* aStyle,
|
|||
if (FontIsUsed(aStyle)) {
|
||||
usage |= FontUsageKind::Frame;
|
||||
if (aStyle->DependsOnSelfFontMetrics()) {
|
||||
MOZ_ASSERT(aPresContext->UsesExChUnits());
|
||||
usage |= FontUsageKind::FontMetrics;
|
||||
}
|
||||
}
|
||||
|
||||
if (aStyle->DependsOnInheritedFontMetrics() &&
|
||||
!(usage & FontUsageKind::FontMetrics)) {
|
||||
MOZ_ASSERT(aPresContext->UsesExChUnits());
|
||||
ComputedStyle* parentStyle = nullptr;
|
||||
if (aIsExtraStyle) {
|
||||
parentStyle = aFrame->Style();
|
||||
|
|
|
|||
Loading…
Reference in a new issue