mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 02:31:59 +00:00
Bugzilla Bug 80634 Program received signal SIGSEGV, Segmentation fault.
Bullet-proofing patch + ASSERT. rs=shaver
This commit is contained in:
parent
5fa6f1b3c4
commit
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;
|
||||
|
Loading…
Reference in New Issue
Block a user