Fix some bogus style parentage warnings. Bug 224867, r+sr=dbaron

This commit is contained in:
bzbarsky%mit.edu 2003-11-13 04:11:38 +00:00
parent 805246a475
commit ce5cf4d481
2 changed files with 4 additions and 4 deletions

View File

@ -1479,6 +1479,8 @@ FrameManager::ReParentStyleContext(nsIFrame* aFrame,
PRInt32 listIndex = 0;
nsIAtom* childList = nsnull;
nsIFrame* child;
aFrame->SetStyleContext(presContext, newContext);
do {
child = nsnull;
@ -1508,8 +1510,6 @@ FrameManager::ReParentStyleContext(nsIFrame* aFrame,
NS_IF_RELEASE(childList);
aFrame->GetAdditionalChildListName(listIndex++, &childList);
} while (childList);
aFrame->SetStyleContext(presContext, newContext);
// do additional contexts
PRInt32 contextIndex = -1;

View File

@ -1479,6 +1479,8 @@ FrameManager::ReParentStyleContext(nsIFrame* aFrame,
PRInt32 listIndex = 0;
nsIAtom* childList = nsnull;
nsIFrame* child;
aFrame->SetStyleContext(presContext, newContext);
do {
child = nsnull;
@ -1508,8 +1510,6 @@ FrameManager::ReParentStyleContext(nsIFrame* aFrame,
NS_IF_RELEASE(childList);
aFrame->GetAdditionalChildListName(listIndex++, &childList);
} while (childList);
aFrame->SetStyleContext(presContext, newContext);
// do additional contexts
PRInt32 contextIndex = -1;