mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 974097 - AppendChild operation in LayersMessages.idplh should be called PrependChild. r=gal
This commit is contained in:
parent
9e9e8b80a4
commit
f22dc6ad70
@ -97,12 +97,12 @@ ShadowAfter(const OpInsertAfter& op)
|
||||
}
|
||||
|
||||
static ShadowLayerParent*
|
||||
ShadowContainer(const OpAppendChild& op)
|
||||
ShadowContainer(const OpPrependChild& op)
|
||||
{
|
||||
return cast(op.containerParent());
|
||||
}
|
||||
static ShadowLayerParent*
|
||||
ShadowChild(const OpAppendChild& op)
|
||||
ShadowChild(const OpPrependChild& op)
|
||||
{
|
||||
return cast(op.childLayerParent());
|
||||
}
|
||||
@ -416,10 +416,10 @@ LayerTransactionParent::RecvUpdate(const InfallibleTArray<Edit>& cset,
|
||||
}
|
||||
break;
|
||||
}
|
||||
case Edit::TOpAppendChild: {
|
||||
MOZ_LAYERS_LOG(("[ParentSide] AppendChild"));
|
||||
case Edit::TOpPrependChild: {
|
||||
MOZ_LAYERS_LOG(("[ParentSide] PrependChild"));
|
||||
|
||||
const OpAppendChild& oac = edit.get_OpAppendChild();
|
||||
const OpPrependChild& oac = edit.get_OpPrependChild();
|
||||
Layer* child = ShadowChild(oac)->AsLayer();
|
||||
if (!child) {
|
||||
return false;
|
||||
|
@ -247,7 +247,7 @@ struct OpSetLayerAttributes {
|
||||
// Monkey with the tree structure
|
||||
struct OpSetRoot { PLayer root; };
|
||||
struct OpInsertAfter { PLayer container; PLayer childLayer; PLayer after; };
|
||||
struct OpAppendChild { PLayer container; PLayer childLayer; };
|
||||
struct OpPrependChild { PLayer container; PLayer childLayer; };
|
||||
struct OpRemoveChild { PLayer container; PLayer childLayer; };
|
||||
struct OpRepositionChild { PLayer container; PLayer childLayer; PLayer after; };
|
||||
struct OpRaiseToTopChild { PLayer container; PLayer childLayer; };
|
||||
@ -371,7 +371,7 @@ union Edit {
|
||||
|
||||
OpSetRoot;
|
||||
OpInsertAfter;
|
||||
OpAppendChild;
|
||||
OpPrependChild;
|
||||
OpRemoveChild;
|
||||
OpRepositionChild;
|
||||
OpRaiseToTopChild;
|
||||
|
@ -276,8 +276,8 @@ ShadowLayerForwarder::InsertAfter(ShadowableLayer* aContainer,
|
||||
nullptr, Shadow(aChild),
|
||||
nullptr, Shadow(aAfter)));
|
||||
else
|
||||
mTxn->AddEdit(OpAppendChild(nullptr, Shadow(aContainer),
|
||||
nullptr, Shadow(aChild)));
|
||||
mTxn->AddEdit(OpPrependChild(nullptr, Shadow(aContainer),
|
||||
nullptr, Shadow(aChild)));
|
||||
}
|
||||
void
|
||||
ShadowLayerForwarder::RemoveChild(ShadowableLayer* aContainer,
|
||||
|
Loading…
Reference in New Issue
Block a user