зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
4a7a889651
Коммит
3b6ec81caa
|
@ -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))
|
||||
|
|
Загрузка…
Ссылка в новой задаче