From 1e4a4d3d881fa33fa168bd2d89cebbb311eba16f Mon Sep 17 00:00:00 2001 From: Mason Chang Date: Tue, 7 Jul 2015 15:41:29 -0700 Subject: [PATCH] Bug 1181028. Log assert error. r=me --- gfx/thebes/gfxBlur.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gfx/thebes/gfxBlur.cpp b/gfx/thebes/gfxBlur.cpp index 9f843d6f793..c5417f19c71 100644 --- a/gfx/thebes/gfxBlur.cpp +++ b/gfx/thebes/gfxBlur.cpp @@ -439,7 +439,11 @@ CreateBoxShadow(DrawTarget& aDT, SourceSurface* aBlurMask, const gfxRGBA& aShado return nullptr; } - MOZ_ASSERT(boxShadowDT->GetType() == aDT.GetType()); + if (boxShadowDT->GetType() != aDT.GetType()) { + printf_stderr("Box shadow type: %d, dest draw target type: %d\n", + (int) boxShadowDT->GetType(), (int) aDT.GetType()); + MOZ_ASSERT(false, "Box shadows are incorrect type\n"); + } ColorPattern shadowColor(ToDeviceColor(aShadowColor)); boxShadowDT->MaskSurface(shadowColor, aBlurMask, Point(0, 0));