From 13cb15d2912f75ff7581915b19b523a40240115e Mon Sep 17 00:00:00 2001 From: "kipp%netscape.com" Date: Thu, 9 Sep 1999 21:02:02 +0000 Subject: [PATCH] Fixed bug 10820 --- layout/generic/nsBulletFrame.cpp | 15 +++++++++++++++ layout/html/base/src/nsBulletFrame.cpp | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/layout/generic/nsBulletFrame.cpp b/layout/generic/nsBulletFrame.cpp index cef44c84fbb..a9be5137db2 100644 --- a/layout/generic/nsBulletFrame.cpp +++ b/layout/generic/nsBulletFrame.cpp @@ -849,6 +849,21 @@ nsBulletFrame::Reflow(nsIPresContext& aPresContext, const nsHTMLReflowState& aReflowState, nsReflowStatus& aStatus) { + if (eReflowReason_Incremental == aReflowState.reason) { + nsIReflowCommand::ReflowType type; + aReflowState.reflowCommand->GetType(type); + if (nsIReflowCommand::StyleChanged == type) { + // Reload the image, maybe... + nsAutoString oldImageURL; + mImageLoader.GetURLSpec(oldImageURL); + const nsStyleList* myList = (const nsStyleList*) + mStyleContext->GetStyleData(eStyleStruct_List); + if (myList->mListStyleImage != oldImageURL) { + mImageLoader.UpdateURLSpec(&aPresContext, myList->mListStyleImage); + } + } + } + // Get the base size GetDesiredSize(&aPresContext, aReflowState, aMetrics); diff --git a/layout/html/base/src/nsBulletFrame.cpp b/layout/html/base/src/nsBulletFrame.cpp index cef44c84fbb..a9be5137db2 100644 --- a/layout/html/base/src/nsBulletFrame.cpp +++ b/layout/html/base/src/nsBulletFrame.cpp @@ -849,6 +849,21 @@ nsBulletFrame::Reflow(nsIPresContext& aPresContext, const nsHTMLReflowState& aReflowState, nsReflowStatus& aStatus) { + if (eReflowReason_Incremental == aReflowState.reason) { + nsIReflowCommand::ReflowType type; + aReflowState.reflowCommand->GetType(type); + if (nsIReflowCommand::StyleChanged == type) { + // Reload the image, maybe... + nsAutoString oldImageURL; + mImageLoader.GetURLSpec(oldImageURL); + const nsStyleList* myList = (const nsStyleList*) + mStyleContext->GetStyleData(eStyleStruct_List); + if (myList->mListStyleImage != oldImageURL) { + mImageLoader.UpdateURLSpec(&aPresContext, myList->mListStyleImage); + } + } + } + // Get the base size GetDesiredSize(&aPresContext, aReflowState, aMetrics);