B2G/gecko/browser/components/tabview/tabitems.js
// Private method that returns the fontsize to use given the tab's width
Private method that returns the fontsize to use given the tab's width
Private method that returns the fontsize to use given the tab ' s width
function TabItem_getFontSizeFromWidth(width) {
    let widthRange = new Range(0, TabItems.tabWidth);
    let proportion = widthRange.proportion(width - TabItems.tabItemPadding.x, true);
    return TabItems.fontSizeRange.scale(proportion);
  }
function TabItem_getFontSizeFromWidth ( width ) { let widthRange = new Range ( 0 , TabItems . tabWidth ) ; let proportion = widthRange . proportion ( width - TabItems . tabItemPadding . x , true ) ; return TabItems . fontSizeRange . scale ( proportion ) ; }
Private method that returns the fontsize to use given the tab's width
Private method that returns the fontsize to use given the tab ' s width
// proportion is in [0,1]