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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user