Hooked up width/height attributes to style changed reflow

This commit is contained in:
kipp%netscape.com 1998-09-25 18:25:20 +00:00
parent c8bd333d5b
commit 95cd6bc299
2 changed files with 10 additions and 0 deletions

View File

@ -944,5 +944,10 @@ ImageFrame::AttributeChanged(nsIPresShell* aShell,
if (NS_OK != rv) {
return rv;
}
if ((nsHTMLAtoms::width == aAttribute) ||
(nsHTMLAtoms::height == aAttribute)) {
nsHTMLContainerFrame::ApplyStyleChangeToTree(*aPresContext, this);
nsHTMLContainerFrame::StyleChangeReflow(*aPresContext, this);
}
return NS_OK;
}

View File

@ -944,5 +944,10 @@ ImageFrame::AttributeChanged(nsIPresShell* aShell,
if (NS_OK != rv) {
return rv;
}
if ((nsHTMLAtoms::width == aAttribute) ||
(nsHTMLAtoms::height == aAttribute)) {
nsHTMLContainerFrame::ApplyStyleChangeToTree(*aPresContext, this);
nsHTMLContainerFrame::StyleChangeReflow(*aPresContext, this);
}
return NS_OK;
}