зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1131840 - Propagate the EventRegionsOverride flag on RefLayers also. r=roc
This commit is contained in:
Родитель
829d36ca44
Коммит
328ee5bf63
|
@ -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 {
|
||||
|
|
Загрузка…
Ссылка в новой задаче