Bug 974097 - AppendChild operation in LayersMessages.idplh should be called PrependChild. r=gal

This commit is contained in:
Chris Lewis 2014-02-24 09:41:55 -05:00
parent 9e9e8b80a4
commit f22dc6ad70
3 changed files with 9 additions and 9 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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,