зеркало из https://github.com/mozilla/gecko-dev.git
Fix for nsbeta2+ bug 43472. r=rpotts. We no longer crash on exit on Full Circle enabled builds.
This commit is contained in:
Родитель
d0df6e3f84
Коммит
9b09a0b6c1
|
@ -1801,9 +1801,10 @@ NS_IMETHODIMP nsFrame::GetView(nsIPresContext* aPresContext, nsIView** aView) co
|
|||
|
||||
if (frameManager) {
|
||||
void* value;
|
||||
frameManager->GetFrameProperty((nsIFrame*)this, nsLayoutAtoms::viewProperty, 0, &value);
|
||||
*aView = (nsIView*)value;
|
||||
NS_ASSERTION(value != 0, "frame state bit was set but frame has no view");
|
||||
if (NS_SUCCEEDED(frameManager->GetFrameProperty((nsIFrame*)this, nsLayoutAtoms::viewProperty, 0, &value))) {
|
||||
*aView = (nsIView*)value;
|
||||
NS_ASSERTION(value != 0, "frame state bit was set but frame has no view");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1801,9 +1801,10 @@ NS_IMETHODIMP nsFrame::GetView(nsIPresContext* aPresContext, nsIView** aView) co
|
|||
|
||||
if (frameManager) {
|
||||
void* value;
|
||||
frameManager->GetFrameProperty((nsIFrame*)this, nsLayoutAtoms::viewProperty, 0, &value);
|
||||
*aView = (nsIView*)value;
|
||||
NS_ASSERTION(value != 0, "frame state bit was set but frame has no view");
|
||||
if (NS_SUCCEEDED(frameManager->GetFrameProperty((nsIFrame*)this, nsLayoutAtoms::viewProperty, 0, &value))) {
|
||||
*aView = (nsIView*)value;
|
||||
NS_ASSERTION(value != 0, "frame state bit was set but frame has no view");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче