Fixing orange (casting a nsTableColFrame* to nsTableColGroupFrame* doesn't
really work...). Patch suggested by bryner, r=me.
This commit is contained in:
Родитель
ad13547c26
Коммит
5c861d776b
|
@ -157,7 +157,8 @@ nsTableColGroupFrame::FindParentForAppendedCol(nsTableFrame* aTableFrame,
|
|||
nsIFrame* lastColGroup = lastCol->GetParent();
|
||||
if (!lastColGroup) return nsnull; // shouldn't happen
|
||||
|
||||
nsTableColGroupFrame* relevantColGroup = (nsTableColGroupFrame *)lastCol;
|
||||
nsTableColGroupFrame* relevantColGroup =
|
||||
NS_STATIC_CAST(nsTableColGroupFrame *, lastColGroup);
|
||||
nsTableColGroupType relevantColGroupType = relevantColGroup->GetType();
|
||||
if (eColGroupAnonymousCell == relevantColGroupType) {
|
||||
if (eColAnonymousCell == aColType) {
|
||||
|
|
|
@ -157,7 +157,8 @@ nsTableColGroupFrame::FindParentForAppendedCol(nsTableFrame* aTableFrame,
|
|||
nsIFrame* lastColGroup = lastCol->GetParent();
|
||||
if (!lastColGroup) return nsnull; // shouldn't happen
|
||||
|
||||
nsTableColGroupFrame* relevantColGroup = (nsTableColGroupFrame *)lastCol;
|
||||
nsTableColGroupFrame* relevantColGroup =
|
||||
NS_STATIC_CAST(nsTableColGroupFrame *, lastColGroup);
|
||||
nsTableColGroupType relevantColGroupType = relevantColGroup->GetType();
|
||||
if (eColGroupAnonymousCell == relevantColGroupType) {
|
||||
if (eColAnonymousCell == aColType) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче