set reflow reason properly for incremental changes

git-svn-id: svn://10.0.0.236/trunk@49291 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peterl%netscape.com
1999-09-29 03:35:51 +00:00
parent 1bd4db5d5f
commit 3222824b3a
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;