Bug 1131840 - Propagate the EventRegionsOverride flag on RefLayers also. r=roc

This commit is contained in:
Kartikaya Gupta 2015-02-16 21:30:02 -05:00
Родитель 829d36ca44
Коммит 328ee5bf63
3 изменённых файлов: 8 добавлений и 2 удалений

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

@ -1274,7 +1274,7 @@ ContainerLayer::DidInsertChild(Layer* aLayer)
void
RefLayer::FillSpecificAttributes(SpecificLayerAttributes& aAttrs)
{
aAttrs = RefLayerAttributes(GetReferentId());
aAttrs = RefLayerAttributes(GetReferentId(), mEventRegionsOverride);
}
/**

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

@ -428,6 +428,7 @@ LayerTransactionParent::RecvUpdate(InfallibleTArray<Edit>&& cset,
return false;
}
refLayer->SetReferentId(specific.get_RefLayerAttributes().id());
refLayer->SetEventRegionsOverride(specific.get_RefLayerAttributes().eventRegionsOverride());
break;
}
case Specific::TImageLayerAttributes: {

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

@ -243,7 +243,12 @@ struct ContainerLayerAttributes {
};
struct ColorLayerAttributes { LayerColor color; nsIntRect bounds; };
struct CanvasLayerAttributes { GraphicsFilterType filter; nsIntRect bounds; };
struct RefLayerAttributes { int64_t id; };
struct RefLayerAttributes {
int64_t id;
// TODO: Once bug 1132895 is fixed we shouldn't need to propagate the override
// explicitly here.
EventRegionsOverride eventRegionsOverride;
};
struct ImageLayerAttributes { GraphicsFilterType filter; IntSize scaleToSize; ScaleMode scaleMode; };
union SpecificLayerAttributes {