set reflow reason properly for incremental changes

This commit is contained in:
peterl@netscape.com
1999-09-29 03:35:51 +00:00
parent 0a04b08151
commit 29f3642123
2 changed files with 16 additions and 2 deletions

View File

@@ -532,7 +532,14 @@ nsHTMLButtonControlFrame::Reflow(nsIPresContext& aPresContext,
if (this == targetFrame) {
Invalidate(nsRect(0,0,mRect.width,mRect.height), PR_FALSE);
reflowState.reason = eReflowReason_Resize;
nsIReflowCommand::ReflowType reflowType;
aReflowState.reflowCommand->GetType(reflowType);
if (nsIReflowCommand::StyleChanged == reflowType) {
reflowState.reason = eReflowReason_StyleChange;
}
else {
reflowState.reason = eReflowReason_Resize;
}
} else {
nsIFrame* nextFrame;