зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1141281 - Don't put empty Info: lines into the layers dump. r=BenWa
This commit is contained in:
Родитель
0a619bf51b
Коммит
59f454bb84
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче