mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
Fix some bogus style parentage warnings. Bug 224867, r+sr=dbaron
This commit is contained in:
parent
805246a475
commit
ce5cf4d481
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user