зеркало из https://github.com/mozilla/pjs.git
Bugzilla Bug 80634 Program received signal SIGSEGV, Segmentation fault.
Bullet-proofing patch + ASSERT. rs=shaver
This commit is contained in:
Родитель
f9cac06472
Коммит
1b51c1fede
|
@ -1253,6 +1253,8 @@ nsGfxScrollFrameInner::Layout(nsBoxLayoutState& aState)
|
|||
nsCOMPtr<nsIFontMetrics> fm;
|
||||
presContext->GetMetricsFor(f, getter_AddRefs(fm));
|
||||
nscoord fontHeight = 1;
|
||||
NS_ASSERTION(fm,"FontMetrics is null assuming fontHeight == 1");
|
||||
if (fm)
|
||||
fm->GetHeight(fontHeight);
|
||||
|
||||
nscoord maxX = scrolledContentSize.width - scrollAreaRect.width;
|
||||
|
|
|
@ -1253,6 +1253,8 @@ nsGfxScrollFrameInner::Layout(nsBoxLayoutState& aState)
|
|||
nsCOMPtr<nsIFontMetrics> fm;
|
||||
presContext->GetMetricsFor(f, getter_AddRefs(fm));
|
||||
nscoord fontHeight = 1;
|
||||
NS_ASSERTION(fm,"FontMetrics is null assuming fontHeight == 1");
|
||||
if (fm)
|
||||
fm->GetHeight(fontHeight);
|
||||
|
||||
nscoord maxX = scrolledContentSize.width - scrollAreaRect.width;
|
||||
|
|
Загрузка…
Ссылка в новой задаче