PRBool nsRegionPh :: IsEmpty(void) { PRBool result = PR_TRUE;  PR_LOG(PhGfxLog, PR_LOG_DEBUG, ("nsRegionPh::IsEmpty mRegion=<%p>\n", mRegion));  if (!mRegion) return PR_TRUE;  MangleTiles(mRegion); mRegion = PhCoalesceTiles( PhMergeTiles( PhSortTiles( mRegion )));  PhTile_t *t = mRegion;    while(t) {   if ((tlrx - tulx)>0) { result = PR_FALSE;  break; }  t = t->next; }  PR_LOG(PhGfxLog, PR_LOG_DEBUG, ("nsRegionPh::IsEmpty Result=<%d>\n", result)); return result; }
virtual PRBool IsEmpty(void) { if ( !mRegion ) return PR_TRUE; if ( mRegion->rect.ul.x == 0 && mRegion->rect.ul.y == 0 && mRegion->rect.lr.x == 0 && mRegion->rect.lr.y == 0 ) return PR_TRUE; return PR_FALSE; }
PRBool nsRegionPh :: IsEmpty(void){  PRBool result = PR_TRUE;  PR_LOG(PhGfxLog, PR_LOG_DEBUG, ("nsRegionPh::IsEmpty mRegion=<%p>\n", mRegion));  if (!mRegion)    return PR_TRUE;  MangleTiles(mRegion);  mRegion = PhCoalesceTiles( PhMergeTiles( PhSortTiles( mRegion )));    PhTile_t *t = mRegion;//  DumpTiles(t);  while(t)  {    /* if width is not 0 then it is not empty *///    if (tlrx - tulx)    if ((tlrx - tulx)>0)    {	  result = PR_FALSE;//	printf ("should be false! (not empty)\n");	  break;	}	    t = t->next;  }  PR_LOG(PhGfxLog, PR_LOG_DEBUG, ("nsRegionPh::IsEmpty Result=<%d>\n", result));  return result;}