зеркало из https://github.com/mozilla/gecko-dev.git
Bug 961364 - Clear the column type bits before setting them in nsTableCol{,Group}Frame::SetColType. r=dbaron
This commit is contained in:
Родитель
ce912be374
Коммит
415a94a6de
|
@ -47,7 +47,8 @@ nsTableColFrame::SetColType(nsTableColType aType)
|
||||||
GetPrevContinuation()->GetNextSibling() == this),
|
GetPrevContinuation()->GetNextSibling() == this),
|
||||||
"spanned content cols must be continuations");
|
"spanned content cols must be continuations");
|
||||||
uint32_t type = aType - eColContent;
|
uint32_t type = aType - eColContent;
|
||||||
mState |= nsFrameState(type << COL_TYPE_OFFSET);
|
RemoveStateBits(COL_TYPE_BITS);
|
||||||
|
AddStateBits(nsFrameState(type << COL_TYPE_OFFSET));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* virtual */ void
|
/* virtual */ void
|
||||||
|
|
|
@ -26,8 +26,12 @@ nsTableColGroupFrame::GetColType() const
|
||||||
|
|
||||||
void nsTableColGroupFrame::SetColType(nsTableColGroupType aType)
|
void nsTableColGroupFrame::SetColType(nsTableColGroupType aType)
|
||||||
{
|
{
|
||||||
|
NS_ASSERTION(GetColType() == eColGroupContent,
|
||||||
|
"should only call nsTableColGroupFrame::SetColType with aType "
|
||||||
|
"!= eColGroupContent once");
|
||||||
uint32_t type = aType - eColGroupContent;
|
uint32_t type = aType - eColGroupContent;
|
||||||
mState |= nsFrameState(type << COL_GROUP_TYPE_OFFSET);
|
RemoveStateBits(COL_GROUP_TYPE_BITS);
|
||||||
|
AddStateBits(nsFrameState(type << COL_GROUP_TYPE_OFFSET));
|
||||||
}
|
}
|
||||||
|
|
||||||
void nsTableColGroupFrame::ResetColIndices(nsIFrame* aFirstColGroup,
|
void nsTableColGroupFrame::ResetColIndices(nsIFrame* aFirstColGroup,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче