use the firstinflow when looking up rowgroups bug 424291 r/sr=bzbarsky a=mtschrep
authorbmlk@gmx.de
Fri, 21 Mar 2008 13:37:31 -0700
changeset 13441 90089bc16ba9d021df29686736f9bac2e3a89552
parent 13440 6075b973ebf00bb5effed650c0910eba0527bec9
child 13442 d7197fea27edb4b89a959a6c1b354b861b7bacd3
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersmtschrep
bugs424291
milestone1.9b5pre
use the firstinflow when looking up rowgroups bug 424291 r/sr=bzbarsky a=mtschrep
layout/tables/nsCellMap.cpp
--- a/layout/tables/nsCellMap.cpp
+++ b/layout/tables/nsCellMap.cpp
@@ -319,17 +319,17 @@ nsTableCellMap::Synchronize(nsTableFrame
   // XXXbz this fails if orderedRowGroups is missing some row groups
   // (due to OOM when appending to the array, e.g. -- we leak maps in
   // that case).
   
   // Scope |map| outside the loop so we can use it as a hint.
   nsCellMap* map = nsnull;
   for (PRUint32 rgX = 0; rgX < orderedRowGroups.Length(); rgX++) {
     nsTableRowGroupFrame* rgFrame = orderedRowGroups[rgX];
-    map = GetMapFor(rgFrame, map);
+    map = GetMapFor((nsTableRowGroupFrame*)rgFrame->GetFirstInFlow(), map);
     if (map) {
       if (!maps.AppendElement(map)) {
         delete map;
         NS_WARNING("Could not AppendElement");
       }
     }
   }