diff --git a/layout/svg/base/src/nsSVGContainerFrame.cpp b/layout/svg/base/src/nsSVGContainerFrame.cpp index 8d5723f7625..0eb12dfd62a 100644 --- a/layout/svg/base/src/nsSVGContainerFrame.cpp +++ b/layout/svg/base/src/nsSVGContainerFrame.cpp @@ -197,7 +197,8 @@ nsSVGDisplayContainerFrame::PaintSVG(nsRenderingContext* aContext, const nsIntRect *aDirtyRect) { NS_ASSERTION(!NS_SVGDisplayListPaintingEnabled() || - (mState & NS_STATE_SVG_NONDISPLAY_CHILD), + (mState & NS_STATE_SVG_NONDISPLAY_CHILD) || + PresContext()->IsGlyph(), "If display lists are enabled, only painting of non-display " "SVG should take this code path"); diff --git a/layout/svg/base/src/nsSVGUtils.cpp b/layout/svg/base/src/nsSVGUtils.cpp index 83feec3d5e1..f619e178bb3 100644 --- a/layout/svg/base/src/nsSVGUtils.cpp +++ b/layout/svg/base/src/nsSVGUtils.cpp @@ -1136,7 +1136,8 @@ nsSVGUtils::PaintFrameWithEffects(nsRenderingContext *aContext, nsIFrame *aFrame) { NS_ASSERTION(!NS_SVGDisplayListPaintingEnabled() || - (aFrame->GetStateBits() & NS_STATE_SVG_NONDISPLAY_CHILD), + (aFrame->GetStateBits() & NS_STATE_SVG_NONDISPLAY_CHILD) || + aFrame->PresContext()->IsGlyph(), "If display lists are enabled, only painting of non-display " "SVG should take this code path");