Bug 1141089 - Turn these two assertions into release assertions. r=roc

--HG--
extra : rebase_source : dbdaa24b17ce6c6b6746233cbd7c1c3fe3efa03d
This commit is contained in:
Markus Stange 2015-04-10 17:34:04 -04:00
Родитель 1cc08a8e75
Коммит 591611146d
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -81,12 +81,12 @@ void
FrameLayerBuilder::DisplayItemData::RemoveFrame(nsIFrame* aFrame)
{
MOZ_RELEASE_ASSERT(mLayer);
DebugOnly<bool> result = mFrameList.RemoveElement(aFrame);
NS_ASSERTION(result, "Can't remove a frame that wasn't added!");
bool result = mFrameList.RemoveElement(aFrame);
MOZ_RELEASE_ASSERT(result, "Can't remove a frame that wasn't added!");
nsTArray<DisplayItemData*>* array =
static_cast<nsTArray<DisplayItemData*>*>(aFrame->Properties().Get(FrameLayerBuilder::LayerManagerDataProperty()));
NS_ASSERTION(array, "Must be already stored on the frame!");
MOZ_RELEASE_ASSERT(array, "Must be already stored on the frame!");
array->RemoveElement(this);
}