Bug 1141281 - Don't put empty Info: lines into the layers dump. r=BenWa

This commit is contained in:
Markus Stange 2015-03-09 00:41:11 -04:00
Родитель 0a619bf51b
Коммит 59f454bb84
1 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -2276,10 +2276,12 @@ ContainerState::PopPaintedLayerData()
layer->SetLayerBounds(layerBounds);
#ifdef MOZ_DUMP_PAINTING
if (PaintedLayerData* containingPld = mLayerBuilder->GetContainingPaintedLayerData()) {
containingPld->mLayer->AddExtraDumpInfo(nsCString(data->mLog));
} else {
layer->AddExtraDumpInfo(nsCString(data->mLog));
if (!data->mLog.IsEmpty()) {
if (PaintedLayerData* containingPld = mLayerBuilder->GetContainingPaintedLayerData()) {
containingPld->mLayer->AddExtraDumpInfo(nsCString(data->mLog));
} else {
layer->AddExtraDumpInfo(nsCString(data->mLog));
}
}
#endif