Bug 803826 - Assert the layer builder exists in DrawThebesLayer. r=mattwoodrow

If the layer builder is NULL, this function will cause a crash. The layer
builder being NULL indicates a bug, so assert that it isn't.
This commit is contained in:
Chris Lord 2012-10-23 12:05:29 +01:00
parent d611c596a1
commit dec9634e6a

View File

@ -3110,6 +3110,7 @@ FrameLayerBuilder::DrawThebesLayer(ThebesLayer* aLayer,
(aCallbackData);
FrameLayerBuilder *layerBuilder = aLayer->Manager()->GetLayerBuilder();
NS_ASSERTION(layerBuilder, "Unexpectedly null layer builder!");
if (layerBuilder->CheckDOMModified())
return;