Landing AttributeChanged alteration. AttributeChanged now fires even when the

style hint is REFLOW or VISUAL (and not just CONTENT).
This commit is contained in:
hyatt@netscape.com
1999-09-08 03:51:41 +00:00
parent 4688789902
commit 3261b63db6
11 changed files with 91 additions and 34 deletions
@@ -158,7 +158,8 @@ nsNativeTextControlFrame::AttributeChanged(nsIPresContext* aPresContext,
/*XXXnsresult rv = */GetText(&value, PR_TRUE);
PRUint32 ignore;
text->SetText(value, ignore);
nsFormFrame::StyleChangeReflow(aPresContext, this);
if (aHint != NS_STYLE_HINT_REFLOW)
nsFormFrame::StyleChangeReflow(aPresContext, this);
} else if (nsHTMLAtoms::maxlength == aAttribute) {
PRInt32 maxLength;
nsresult rv = GetMaxLength(&maxLength);
@@ -169,7 +170,8 @@ nsNativeTextControlFrame::AttributeChanged(nsIPresContext* aPresContext,
PRBool oldReadOnly;
text->SetReadOnly(nsFormFrame::GetReadonly(this),oldReadOnly);
}
else if (nsHTMLAtoms::size == aAttribute) {
else if (nsHTMLAtoms::size == aAttribute &&
aHint != NS_STYLE_HINT_REFLOW) {
nsFormFrame::StyleChangeReflow(aPresContext, this);
}
// Allow the base class to handle common attributes supported