Bug 586683 - ImageContainers can have no manager. r=Bas a=bustage

This commit is contained in:
Matt Woodrow 2011-01-18 12:00:43 +13:00
parent 2a2f92ab3a
commit 2406e613cc

View File

@ -220,7 +220,7 @@ public:
*/ */
void SetContainer(ImageContainer* aContainer) void SetContainer(ImageContainer* aContainer)
{ {
NS_ASSERTION(aContainer->Manager() == Manager(), NS_ASSERTION(!aContainer->Manager() || aContainer->Manager() == Manager(),
"ImageContainer must have the same manager as the ImageLayer"); "ImageContainer must have the same manager as the ImageLayer");
mContainer = aContainer; mContainer = aContainer;
} }