B2G/gecko/browser/components/tabview/groupitems.js
// Given persistent storage data for a groupItem, returns true if it appears to not be damaged.
Given persistent storage data for a groupItem, returns true if it appears to not be damaged.
Given persistent storage data for a groupItem returns true if it appears to not be damaged .
function GroupItems_groupItemStorageSanity(groupItemData) {
    let sane = true;
    if (!groupItemData.bounds || !Utils.isRect(groupItemData.bounds)) {
      Utils.log('GroupItems.groupItemStorageSanity: bad bounds', groupItemData.bounds);
      sane = false;
    } else if ((groupItemData.userSize && 
               !Utils.isPoint(groupItemData.userSize)) ||
               !groupItemData.id) {
      sane = false;
    }
    return sane;
  }
function GroupItems_groupItemStorageSanity ( groupItemData ) { let sane = true ; if ( ! groupItemData . bounds || ! Utils . isRect ( groupItemData . bounds ) ) { Utils . log ( 'GroupItems.groupItemStorageSanity: bad bounds' , groupItemData . bounds ) ; sane = false ; } else if ( ( groupItemData . userSize && ! Utils . isPoint ( groupItemData . userSize ) ) || ! groupItemData . id ) { sane = false ; } return sane ; }
Given persistent storage data for a groupItem, returns true if it appears to not be damaged.
Given persistent storage data for a groupItem returns true if it appears to not be damaged .