зеркало из https://github.com/mozilla/gecko-dev.git
Bug 950301 - Add another assertion to detect scenarios where we botch the layer tree. r=BenWa
This commit is contained in:
Родитель
a567db82f3
Коммит
5fee92e5f2
|
@ -796,6 +796,8 @@ ContainerLayer::RepositionChild(Layer* aChild, Layer* aAfter)
|
|||
(aAfter->Manager() == Manager() &&
|
||||
aAfter->GetParent() == this),
|
||||
"aAfter is not our child");
|
||||
NS_ASSERTION(aChild != aAfter,
|
||||
"aChild cannot be the same as aAfter");
|
||||
|
||||
Layer* prev = aChild->GetPrevSibling();
|
||||
Layer* next = aChild->GetNextSibling();
|
||||
|
|
Загрузка…
Ссылка в новой задаче