Fixed bug 10820

git-svn-id: svn://10.0.0.236/trunk@46623 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp%netscape.com
1999-09-09 21:02:02 +00:00
parent 6e9bd7e9df
commit 2f86fd16d3
2 changed files with 30 additions and 0 deletions

View File

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