#416: M1365189 M1365875

This commit is contained in:
Cameron Kaiser
2017-07-23 11:49:56 -07:00
parent 61ec438893
commit d9876efcf1
3 changed files with 50 additions and 10 deletions
+9
View File
@@ -788,6 +788,15 @@ nsSVGIntegrationUtils::DrawableFromPaintServer(nsIFrame* aFrame,
return drawable.forget();
}
#if DEBUG
if (aFrame->IsFrameOfType(nsIFrame::eSVG) &&
!static_cast<nsISVGChildFrame*>(do_QueryFrame(aFrame))) {
MOZ_ASSERT_UNREACHABLE("We should prevent painting of unpaintable SVG "
"before we get here");
return nullptr;
}
#endif
// We don't want to paint into a surface as long as we don't need to, so we
// set up a drawing callback.
RefPtr<gfxDrawingCallback> cb =