B2G/gecko/browser/components/tabview/groupitems.js
// Basic measure rules. Assures that item is a minimum size.
Basic measure rules. Assures that item is a minimum size.
Basic measure rules . Assures that item is a minimum size .
function GroupItems_calcValidSize(size, options) {
    Utils.assert(Utils.isPoint(size), 'input is a Point');
    Utils.assert((size.x>0 || size.y>0) && (size.x!=0 && size.y!=0), 
      "dimensions are valid:"+size.x+","+size.y);
    return new Point(
      Math.max(size.x, GroupItems.minGroupWidth),
      Math.max(size.y, GroupItems.minGroupHeight));
  }
function GroupItems_calcValidSize ( size , options ) { Utils . assert ( Utils . isPoint ( size ) , 'input is a Point' ) ; Utils . assert ( ( size . x > 0 || size . y > 0 ) && ( size . x != 0 && size . y != 0 ) , "dimensions are valid:" + size . x + "," + size . y ) ; return new Point ( Math . max ( size . x , GroupItems . minGroupWidth ) , Math . max ( size . y , GroupItems . minGroupHeight ) ) ; }
Basic measure rules.
Basic measure rules .