Table cells need to call DidSetStyleContext whenever their style changes, or

whenever the table's style changes.
This is a partial fix for bug 3513
This commit is contained in:
buster@netscape.com
1999-03-13 04:38:02 +00:00
parent 514d840432
commit fd8e0b09ba
2 changed files with 2 additions and 0 deletions

View File

@@ -594,6 +594,7 @@ NS_METHOD nsTableCellFrame::IR_StyleChanged(nsIPresContext& aPresContex
nsresult rv = NS_OK;
// we presume that all the easy optimizations were done in the nsHTMLStyleSheet before we were called here
// XXX: we can optimize this when we know which style attribute changed
DidSetStyleContext(&aPresContext);
nsTableFrame* tableFrame=nsnull;
rv = nsTableFrame::GetTableFrame(this, tableFrame);
if ((NS_SUCCEEDED(rv)) && (nsnull!=tableFrame))