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
Родитель 4a7a889651
Коммит 3b6ec81caa
2 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -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))

Просмотреть файл

@ -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))