Bug 719286 - Make SVG glyphs play nice with displaylist code r=roc

This commit is contained in:
Edwin Flores 2012-09-06 16:58:47 +12:00
parent 02666f50da
commit 2c2aeed21d
2 changed files with 4 additions and 2 deletions

View File

@ -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");

View File

@ -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");