From 3b6ec81caa3b5b8da2922f8c32bfa853fc16755f Mon Sep 17 00:00:00 2001 From: "buster%netscape.com" Date: Sat, 13 Mar 1999 04:38:02 +0000 Subject: [PATCH] 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 --- layout/html/table/src/nsTableCellFrame.cpp | 1 + layout/tables/nsTableCellFrame.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/layout/html/table/src/nsTableCellFrame.cpp b/layout/html/table/src/nsTableCellFrame.cpp index 194661e535db..5e4d4607613f 100644 --- a/layout/html/table/src/nsTableCellFrame.cpp +++ b/layout/html/table/src/nsTableCellFrame.cpp @@ -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)) diff --git a/layout/tables/nsTableCellFrame.cpp b/layout/tables/nsTableCellFrame.cpp index 194661e535db..5e4d4607613f 100644 --- a/layout/tables/nsTableCellFrame.cpp +++ b/layout/tables/nsTableCellFrame.cpp @@ -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))