mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
Fixed ::Union by copying the tile list before MergeAdd
r=kedl
This commit is contained in:
parent
5c1d1ddd4b
commit
b27c322b8d
@ -47,12 +47,11 @@ static NS_DEFINE_IID(kRegionIID, NS_IREGION_IID);
|
||||
static void DumpTiles(PhTile_t *t)
|
||||
{
|
||||
#ifdef DEBUG_REGION
|
||||
|
||||
int count=1;
|
||||
|
||||
while(t)
|
||||
{
|
||||
//printf("Tile %d is t=<%p> t->next=<%p> (%d, %d) - (%d,%d)\n", count, t, t->next, tulx, tuly, tlrx, tlry);
|
||||
printf("Tile %d is t=<%p> t->next=<%p> (%d, %d) - (%d,%d)\n", count, t, t->next, tulx, tuly, tlrx, tlry);
|
||||
PR_LOG(PhGfxLog, PR_LOG_DEBUG, ("Tile %d is t=<%p> t->next=<%p> (%d, %d) - (%d,%d)\n", count, t, t->next, tulx, tuly, tlrx, tlry));
|
||||
t = t->next;
|
||||
count++;
|
||||
@ -174,8 +173,7 @@ void nsRegionPh :: Union(const nsIRegion &aRegion)
|
||||
int added;
|
||||
PhTile_t *tiles;
|
||||
aRegion.GetNativeRegion((void*&)tiles);
|
||||
|
||||
mRegion = PhAddMergeTiles(mRegion, tiles, &added);
|
||||
mRegion = PhAddMergeTiles(mRegion, PhCopyTiles(tiles), &added);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user