зеркало из https://github.com/mozilla/gecko-dev.git
null-ptr check for talkback crash that I cannot duplicate. b=105168 r=karnaze sr=hyatt
This commit is contained in:
Родитель
78caae6067
Коммит
ca54f79ce1
|
@ -2302,6 +2302,12 @@ nsLineLayout::VerticalAlignFrames(PerSpanData* psd)
|
|||
while (nsnull != pfd) {
|
||||
nsIFrame* frame = pfd->mFrame;
|
||||
|
||||
// sanity check (see bug 105168, non-reproducable crashes from null frame)
|
||||
NS_ASSERTION(frame, "null frame in PerFrameData - something is very very bad");
|
||||
if (!frame) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Compute the logical height of the frame
|
||||
nscoord logicalHeight;
|
||||
nscoord topLeading;
|
||||
|
|
|
@ -2302,6 +2302,12 @@ nsLineLayout::VerticalAlignFrames(PerSpanData* psd)
|
|||
while (nsnull != pfd) {
|
||||
nsIFrame* frame = pfd->mFrame;
|
||||
|
||||
// sanity check (see bug 105168, non-reproducable crashes from null frame)
|
||||
NS_ASSERTION(frame, "null frame in PerFrameData - something is very very bad");
|
||||
if (!frame) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Compute the logical height of the frame
|
||||
nscoord logicalHeight;
|
||||
nscoord topLeading;
|
||||
|
|
Загрузка…
Ссылка в новой задаче