Fixing orange (casting a nsTableColFrame* to nsTableColGroupFrame* doesn't
really work...). Patch suggested by bryner, r=me. git-svn-id: svn://10.0.0.236/trunk@144511 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
b4657fef30
commit
f61d27d7cd
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user