Bug 1317551. Make the main image drawing path ask for async notifications. r=aosmond
We don't want sync notifications during painting.
--- a/layout/base/nsLayoutUtils.cpp
+++ b/layout/base/nsLayoutUtils.cpp
@@ -6424,16 +6424,18 @@ DrawImageInternal(gfxContext&
const nsPoint& aAnchor,
const nsRect& aDirty,
const SVGImageContext* aSVGContext,
uint32_t aImageFlags,
ExtendMode aExtendMode = ExtendMode::CLAMP)
{
DrawResult result = DrawResult::SUCCESS;
+ aImageFlags |= imgIContainer::FLAG_ASYNC_NOTIFY;
+
if (aPresContext->Type() == nsPresContext::eContext_Print) {
// We want vector images to be passed on as vector commands, not a raster
// image.
aImageFlags |= imgIContainer::FLAG_BYPASS_SURFACE_CACHE;
}
if (aDest.Contains(aFill)) {
aImageFlags |= imgIContainer::FLAG_CLAMP;
}