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
This commit is contained in:
dbaron%dbaron.org
2005-06-20 21:25:41 +00:00
parent 42519f02a1
commit 806d014cd4

View File

@@ -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();