mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
Hooked up width/height attributes to style changed reflow
This commit is contained in:
parent
c8bd333d5b
commit
95cd6bc299
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user