Bug 593604. Part 8.5: Add SupportsComponentAlphaChildren API. r=bas,a=blocking

This commit is contained in:
Robert O'Callahan 2011-01-03 14:48:09 +13:00
Родитель cb5e2b5146
Коммит 64931e1915
2 изменённых файлов: 10 добавлений и 1 удалений

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

@ -951,12 +951,19 @@ public:
*/
PRBool HasMultipleChildren();
/**
* Returns true if this container supports children with component alpha.
* Should only be called while painting a child of this layer.
*/
PRBool SupportsComponentAlphaChildren() { return mSupportsComponentAlphaChildren; }
protected:
ContainerLayer(LayerManager* aManager, void* aImplData)
: Layer(aManager, aImplData),
mFirstChild(nsnull),
mLastChild(nsnull),
mUseIntermediateSurface(PR_FALSE)
mUseIntermediateSurface(PR_FALSE),
mSupportsComponentAlphaChildren(PR_FALSE)
{
mContentFlags = 0; // Clear NO_TEXT, NO_TEXT_OVER_TRANSPARENT
}
@ -978,6 +985,7 @@ protected:
Layer* mLastChild;
FrameMetrics mFrameMetrics;
PRPackedBool mUseIntermediateSurface;
PRPackedBool mSupportsComponentAlphaChildren;
};
/**

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

@ -162,6 +162,7 @@ public:
ContainerLayer(aManager, static_cast<BasicImplData*>(this))
{
MOZ_COUNT_CTOR(BasicContainerLayer);
mSupportsComponentAlphaChildren = PR_TRUE;
}
virtual ~BasicContainerLayer();