Bug 770096 - Prevent crashes when encountering an empty ThebesLayer. r=roc

This commit is contained in:
Matt Woodrow 2012-07-25 09:39:01 +12:00
parent 1f0c50c269
commit 7798b353c1

View File

@ -2630,6 +2630,10 @@ FrameLayerBuilder::DrawThebesLayer(ThebesLayer* aLayer,
// so 'entry' could become invalid.
}
if (!containerLayerFrame) {
return;
}
ThebesDisplayItemLayerUserData* userData =
static_cast<ThebesDisplayItemLayerUserData*>
(aLayer->GetUserData(&gThebesDisplayItemLayerUserData));