mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 17:23:59 +00:00
Bug 961364 - Clear the column type bits before setting them in nsTableCol{,Group}Frame::SetColType. r=dbaron
This commit is contained in:
parent
ce912be374
commit
415a94a6de
@ -47,7 +47,8 @@ nsTableColFrame::SetColType(nsTableColType aType)
|
||||
GetPrevContinuation()->GetNextSibling() == this),
|
||||
"spanned content cols must be continuations");
|
||||
uint32_t type = aType - eColContent;
|
||||
mState |= nsFrameState(type << COL_TYPE_OFFSET);
|
||||
RemoveStateBits(COL_TYPE_BITS);
|
||||
AddStateBits(nsFrameState(type << COL_TYPE_OFFSET));
|
||||
}
|
||||
|
||||
/* virtual */ void
|
||||
|
@ -26,8 +26,12 @@ nsTableColGroupFrame::GetColType() const
|
||||
|
||||
void nsTableColGroupFrame::SetColType(nsTableColGroupType aType)
|
||||
{
|
||||
NS_ASSERTION(GetColType() == eColGroupContent,
|
||||
"should only call nsTableColGroupFrame::SetColType with aType "
|
||||
"!= eColGroupContent once");
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user