Backed out changeset d03cb12a166e (bug 1023677)

This commit is contained in:
Carsten "Tomcat" Book 2014-07-18 10:45:26 +02:00
Родитель 4e4432eac0
Коммит f87d44ff5a
1 изменённых файлов: 4 добавлений и 15 удалений

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

@ -530,7 +530,7 @@ public:
* @param aTextContentFlags if any child layer has CONTENT_COMPONENT_ALPHA,
* set *aTextContentFlags to CONTENT_COMPONENT_ALPHA
*/
void Finish(uint32_t *aTextContentFlags, LayerManagerData* aData, bool& aHasComponentAlphaChildren);
void Finish(uint32_t *aTextContentFlags, LayerManagerData* aData);
nsRect GetChildrenBounds() { return mBounds; }
@ -3065,7 +3065,7 @@ ContainerState::CollectOldLayers()
}
void
ContainerState::Finish(uint32_t* aTextContentFlags, LayerManagerData* aData, bool& aHasComponentAlphaChildren)
ContainerState::Finish(uint32_t* aTextContentFlags, LayerManagerData* aData)
{
while (!mThebesLayerDataStack.IsEmpty()) {
PopThebesLayerData();
@ -3084,16 +3084,6 @@ ContainerState::Finish(uint32_t* aTextContentFlags, LayerManagerData* aData, boo
textContentFlags |=
layer->GetContentFlags() & (Layer::CONTENT_COMPONENT_ALPHA |
Layer::CONTENT_COMPONENT_ALPHA_DESCENDANT);
// Notify the parent of component alpha children unless it's coming from
// within a transformed child since we don't want flattening of component
// alpha layers to happen across transforms. Re-rendering the text during
// transform animations looks worse than losing subpixel-AA.
if ((layer->GetContentFlags() & Layer::CONTENT_COMPONENT_ALPHA) &&
(layer->GetType() != Layer::TYPE_CONTAINER ||
layer->GetBaseTransform().IsIdentity())) {
aHasComponentAlphaChildren = true;
}
}
if (!layer->GetParent()) {
@ -3433,13 +3423,12 @@ FrameLayerBuilder::BuildContainerLayerFor(nsDisplayListBuilder* aBuilder,
// Set CONTENT_COMPONENT_ALPHA if any of our children have it.
// This is suboptimal ... a child could have text that's over transparent
// pixels in its own layer, but over opaque parts of previous siblings.
bool hasComponentAlphaChildren = false;
state.Finish(&flags, data, hasComponentAlphaChildren);
state.Finish(&flags, data);
bounds = state.GetChildrenBounds();
pixBounds = state.ScaleToOutsidePixels(bounds, false);
appUnitsPerDevPixel = state.GetAppUnitsPerDevPixel();
if (hasComponentAlphaChildren &&
if ((flags & Layer::CONTENT_COMPONENT_ALPHA) &&
mRetainingManager &&
!mRetainingManager->AreComponentAlphaLayersEnabled() &&
containerLayer->HasMultipleChildren() &&