From 34209305844d9fb4cf14eb67e42c8f50a29b4f8b Mon Sep 17 00:00:00 2001 From: Mats Palmgren Date: Sat, 11 Oct 2008 03:41:10 +0200 Subject: [PATCH] Mark the bullet frame dirty when its ordinal change. b=203727 r+sr=dbaron --- layout/generic/nsBlockFrame.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/layout/generic/nsBlockFrame.cpp b/layout/generic/nsBlockFrame.cpp index 77c186f496ff..b17dab65a501 100644 --- a/layout/generic/nsBlockFrame.cpp +++ b/layout/generic/nsBlockFrame.cpp @@ -6560,9 +6560,8 @@ nsBlockFrame::RenumberListsFor(nsPresContext* aPresContext, if (changed) { kidRenumberedABullet = PR_TRUE; - // Invalidate the bullet content area since it may look different now - nsRect damageRect(nsPoint(0, 0), listItem->mBullet->GetSize()); - listItem->mBullet->Invalidate(damageRect); + // The ordinal changed - mark the bullet frame dirty. + listItem->ChildIsDirty(listItem->mBullet); } }