Bug 586683 - Part 4 - Move images into a separate ImageLayer when they are the only item in a ThebesLayer. r=roc a=blocking2.0

This commit is contained in:
Matt Woodrow
2011-01-18 10:47:18 +13:00
parent e196cd6dfb
commit d92ecd6c06
6 changed files with 256 additions and 54 deletions

View File

@@ -218,7 +218,12 @@ public:
* Set the ImageContainer. aContainer must have the same layer manager
* as this layer.
*/
void SetContainer(ImageContainer* aContainer) { mContainer = aContainer; }
void SetContainer(ImageContainer* aContainer)
{
NS_ASSERTION(aContainer->Manager() == Manager(),
"ImageContainer must have the same manager as the ImageLayer");
mContainer = aContainer;
}
/**
* CONSTRUCTION PHASE ONLY
* Set the filter used to resample this image if necessary.