rem: [imageType, frameCount]); 
add: [imageType, image.numFrames]); 
context: function checkForImage(elem, htmllocalname){  var img;  var imgType; // "img" = <img>               // "object" = <object>               // "input" = <input type=image>               // "background" = css background (to be added later)  var ismap = false;  if (htmllocalname === "img") {    img = elem;    imgType = "img";  } else if (htmllocalname === "object" &&             elem.type.substring(0,6) == "image/" &&             elem.data) {    img = elem;    imgType = "object";  } else if (htmllocalname === "input" &&             elem.type.toUpperCase() == "IMAGE") {    img = elem;    imgType = "input";  } else if (htmllocalname === "area" || htmllocalname === "a") {    // Clicked in image map?    var map = elem;    ismap = true;    setAlt(map);    while (map && map.nodeType == Node.ELEMENT_NODE && !isHTMLElement(map,"map") )      map = map.parentNode;    if (map && map.nodeType == Node.ELEMENT_NODE) {      img = getImageForMap(map);      var imgLocalName = img && img.localName.toLowerCase();      if (imgLocalName == "img" || imgLocalName == "object")          imgType = imgLocalName;    }  }  if (img) {    var imgURL = imgType == "object" ? img.data : img.src;    setInfo("image-url", imgURL);    var size = getSize(imgURL);    if (size != -1) {      var kbSize = size / 1024;      kbSize = Math.round(kbSize*100)/100;      setInfo("image-filesize", gMetadataBundle.getFormattedString("imageSize", [kbSize, size]));    } else {      setInfo("image-filesize", gMetadataBundle.getString("imageSizeUnknown"));    }    var imageRequest = img.QueryInterface(nsIImageLoadingContent)                          .getRequest(nsIImageLoadingContent.CURRENT_REQUEST);    var imageType = "";    if (imageRequest) {      imageType = imageRequest.mimeType;      var imageMimeType = /^image\/(.*)/.exec(imageType);      if (imageMimeType) {        imageType = imageMimeType[1].toUpperCase();        var frameCount = imageRequest.image.numFrames;        if (frameCount > 1)          imageType = gMetadataBundle.getFormattedString("animatedImageType",                                                         [imageType, frameCount]);        else          imageType = gMetadataBundle.getFormattedString("imageType", [imageType]);      }    }    setInfo("image-type", imageType);    var imageSize = "";    if (img.width) {      var image = imageRequest && imageRequest.image;      if (image && (image.width != img.width || image.height != img.height))        imageSize = gMetadataBundle.getFormattedString("imageDimensionsScaled",                                                       [image.width, image.height,                                                        img.width,   img.height]);      else        imageSize = gMetadataBundle.getFormattedString("imageDimensions", [img.width, img.height]);    }            setInfo("image-size", imageSize);         if (imgType == "img") {      setInfo("image-desc", img.longDesc);    } else {      setInfo("image-desc", "");    }        onImage = true;  }  if (!ismap) {   if (imgType == "img" || imgType == "input") {     setAlt(img);   } else {     hideNode("image-alt");   }  }}
meta: 10520	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10520/6498fdacfa0dbe0fafc3d683b93f3ed5e8cf7af5/metaData.js/clean/browser/base/content/metaData.js