Bug 697230: Part 0 - Make table frame classes call into their superclass in DidSetStyleContext. r=bz

This commit is contained in:
Kyle Huey 2012-08-13 14:13:34 -07:00
parent f9dc19e0af
commit 0a624c1ae1
6 changed files with 12 additions and 0 deletions

View File

@ -213,6 +213,8 @@ nsTableCellFrame::AttributeChanged(PRInt32 aNameSpaceID,
/* virtual */ void
nsTableCellFrame::DidSetStyleContext(nsStyleContext* aOldStyleContext)
{
nsContainerFrame::DidSetStyleContext(aOldStyleContext);
if (!aOldStyleContext) //avoid this on init
return;

View File

@ -54,6 +54,8 @@ nsTableColFrame::SetColType(nsTableColType aType)
/* virtual */ void
nsTableColFrame::DidSetStyleContext(nsStyleContext* aOldStyleContext)
{
nsSplittableFrame::DidSetStyleContext(aOldStyleContext);
if (!aOldStyleContext) //avoid this on init
return;

View File

@ -155,6 +155,8 @@ nsTableColGroupFrame::SetInitialChildList(ChildListID aListID,
/* virtual */ void
nsTableColGroupFrame::DidSetStyleContext(nsStyleContext* aOldStyleContext)
{
nsContainerFrame::DidSetStyleContext(aOldStyleContext);
if (!aOldStyleContext) //avoid this on init
return;

View File

@ -2023,6 +2023,8 @@ nsTableFrame::GetCollapsedWidth(nsMargin aBorderPadding)
/* virtual */ void
nsTableFrame::DidSetStyleContext(nsStyleContext* aOldStyleContext)
{
nsContainerFrame::DidSetStyleContext(aOldStyleContext);
if (!aOldStyleContext) //avoid this on init
return;

View File

@ -158,6 +158,8 @@ nsTableRowFrame::Init(nsIContent* aContent,
/* virtual */ void
nsTableRowFrame::DidSetStyleContext(nsStyleContext* aOldStyleContext)
{
nsContainerFrame::DidSetStyleContext(aOldStyleContext);
if (!aOldStyleContext) //avoid this on init
return;

View File

@ -1337,6 +1337,8 @@ nsTableRowGroupFrame::Reflow(nsPresContext* aPresContext,
/* virtual */ void
nsTableRowGroupFrame::DidSetStyleContext(nsStyleContext* aOldStyleContext)
{
nsContainerFrame::DidSetStyleContext(aOldStyleContext);
if (!aOldStyleContext) //avoid this on init
return;