Lines Matching refs:coords

473 this.getClientOffset=function(elt){var addOffset=function addOffset(elt,coords,view){var p=elt.offsetParent;
475 if(elt.offsetLeft){coords.x+=elt.offsetLeft+chrome.getMeasurementInPixels(elt,"borderLeft")
476 }if(elt.offsetTop){coords.y+=elt.offsetTop+chrome.getMeasurementInPixels(elt,"borderTop")
477 }if(p){if(p.nodeType==1){addOffset(p,coords,view)
479 if(!otherView.opener&&otherView.frameElement){addOffset(otherView.frameElement,coords,otherView)
482 var coords={x:0,y:0};
484 addOffset(elt,coords,view)
485 }return coords
487 this.getViewOffset=function(elt,singleFrame){function addOffset(elt,coords,view){var p=elt.offsetParent;
488 coords.x+=elt.offsetLeft-(p?p.scrollLeft:0);
489 coords.y+=elt.offsetTop-(p?p.scrollTop:0);
491 if(parentStyle.position!="static"){coords.x+=parseInt(parentStyle.borderLeftWidth);
492 coords.y+=parseInt(parentStyle.borderTopWidth);
493 if(p.localName=="TABLE"){coords.x+=parseInt(parentStyle.paddingLeft);
494 coords.y+=parseInt(parentStyle.paddingTop)
496 coords.x+=parseInt(style.marginLeft);
497 coords.y+=parseInt(style.marginTop)
498 }}}else{if(p.localName=="BODY"){coords.x+=parseInt(parentStyle.borderLeftWidth);
499 coords.y+=parseInt(parentStyle.borderTopWidth)
501 while(p!=parent){coords.x-=parent.scrollLeft;
502 coords.y-=parent.scrollTop;
504 }addOffset(p,coords,view)
506 coords.x+=parseInt(style.borderLeftWidth);
507 coords.y+=parseInt(style.borderTopWidth);
509 coords.x-=parseInt(htmlStyle.paddingLeft);
510 coords.y-=parseInt(htmlStyle.paddingTop)
511 }if(elt.scrollLeft){coords.x+=elt.scrollLeft
512 }if(elt.scrollTop){coords.y+=elt.scrollTop
514 if(win&&(!singleFrame&&win.frameElement)){addOffset(win.frameElement,coords,win)
515 }}}var coords={x:0,y:0};
516 if(elt){addOffset(elt,coords,elt.ownerDocument.defaultView)
517 }return coords
1342 domMemberMap.HTMLAnchorElement=extendArray(domMemberMap.Element,["name","target","accessKey","href","protocol","host","hostname","port","pathname","search","hash","hreflang","coords","shape","text","type","rel","rev","charset"]);