bug 606730 - Remote thebesLayer BG color rendering always, even if it's not visible, Part 1: Add mLastChild to all ContainerLayer r=roc a=roc

This commit is contained in:
Tatiana Meshkova
2010-11-16 18:33:56 -05:00
parent 93da800b44
commit a827694633
5 changed files with 33 additions and 0 deletions

View File

@@ -226,6 +226,9 @@ ContainerInsertAfter(Layer* aChild, Layer* aAfter, Container* aContainer)
NS_ADDREF(aChild);
aChild->SetParent(aContainer);
if (aAfter == aContainer->mLastChild) {
aContainer->mLastChild = aChild;
}
if (!aAfter) {
aChild->SetNextSibling(aContainer->mFirstChild);
if (aContainer->mFirstChild) {
@@ -262,6 +265,8 @@ ContainerRemoveChild(Layer* aChild, Container* aContainer)
}
if (next) {
next->SetPrevSibling(prev);
} else {
aContainer->mLastChild = prev;
}
aChild->SetNextSibling(nsnull);