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