Bug 1157669 - Assert aGroupTarget is not null in PaintSelfOrChildren method. r=nical
This commit is contained in:
@@ -793,6 +793,7 @@ void
|
||||
BasicLayerManager::PaintSelfOrChildren(PaintLayerContext& aPaintContext,
|
||||
gfxContext* aGroupTarget)
|
||||
{
|
||||
MOZ_ASSERT(aGroupTarget);
|
||||
BasicImplData* data = ToData(aPaintContext.mLayer);
|
||||
|
||||
/* Only paint ourself, or our children - This optimization relies on this! */
|
||||
@@ -852,6 +853,8 @@ BasicLayerManager::PaintLayer(gfxContext* aTarget,
|
||||
DrawPaintedLayerCallback aCallback,
|
||||
void* aCallbackData)
|
||||
{
|
||||
MOZ_ASSERT(aTarget);
|
||||
|
||||
PROFILER_LABEL("BasicLayerManager", "PaintLayer",
|
||||
js::ProfileEntry::Category::GRAPHICS);
|
||||
|
||||
@@ -911,7 +914,7 @@ BasicLayerManager::PaintLayer(gfxContext* aTarget,
|
||||
paintLayerContext.AnnotateOpaqueRect();
|
||||
}
|
||||
|
||||
bool clipIsEmpty = !aTarget || aTarget->GetClipExtents().IsEmpty();
|
||||
bool clipIsEmpty = aTarget->GetClipExtents().IsEmpty();
|
||||
if (clipIsEmpty) {
|
||||
PaintSelfOrChildren(paintLayerContext, aTarget);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user