From 806d014cd4ffc263e2aae57855e9f4eb57513e6c Mon Sep 17 00:00:00 2001 From: "dbaron%dbaron.org" Date: Mon, 20 Jun 2005 21:25:41 +0000 Subject: [PATCH] Zooming way down should not make bullets larger. b=296219 r+sr=roc a=asa git-svn-id: svn://10.0.0.236/trunk@174879 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/generic/nsBulletFrame.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/layout/generic/nsBulletFrame.cpp b/mozilla/layout/generic/nsBulletFrame.cpp index ca85502c942..9c8a91bc7b2 100644 --- a/mozilla/layout/generic/nsBulletFrame.cpp +++ b/mozilla/layout/generic/nsBulletFrame.cpp @@ -1376,7 +1376,7 @@ nsBulletFrame::GetListItemText(const nsStyleList& aListStyle, return success; } -#define MIN_BULLET_SIZE 5 // from laytext.c +#define MIN_BULLET_SIZE 1 #define MINMAX(_value,_min,_max) \ @@ -1514,7 +1514,7 @@ nsBulletFrame::GetDesiredSize(nsPresContext* aCX, fm->GetMaxAscent(ascent); bulletSize = NSTwipsToIntPixels( (nscoord)NSToIntRound(0.8f * (float(ascent) / 2.0f)), t2p); - if (bulletSize < 1) { + if (bulletSize < MIN_BULLET_SIZE) { bulletSize = MIN_BULLET_SIZE; } p2t = aCX->PixelsToTwips();