Lines Matching refs:el

284 this.getStyle=this.isIE?function(el,name){return el.currentStyle[name]||el.style[name]||undefined
285 }:function(el,name){return el.ownerDocument.defaultView.getComputedStyle(el,null)[name]||el.style[name]||undefined
1239 }this.fixOperaTabKey=function(el){el.onfocus=onOperaTabFocus;
1240 el.onblur=onOperaTabBlur;
1241 el.onkeydown=onOperaTabKeyDown
1381 }else{if(data.innerHTML&&data.elements){for(var i=0,el,l=(el=data.elements).length;
1383 i++){if(el[i].name){r[rl++]=encodeURIComponent(el[i].name);
1385 r[rl++]=encodeURIComponent(el[i].value);
1600 for(var i=0,l=els.length,el;
1602 i++){el=els[i];
1603 ElementCache(el)
2123 },getWindowSize:function(){var width=0,height=0,el;
2126 }else{if((el=this.document.documentElement)&&(el.clientHeight||el.clientWidth)){width=el.clientWidth;
2127 height=el.clientHeight
2128 }else{if((el=this.document.body)&&(el.clientHeight||el.clientWidth)){width=el.clientWidth;
2129 height=el.clientHeight
2131 },getWindowScrollSize:function(){var width=0,height=0,el;
2132 if(!isIEQuiksMode&&(el=this.document.documentElement)&&(el.scrollHeight||el.scrollWidth)){width=el.scrollWidth;
2133 height=el.scrollHeight
2134 }if((el=this.document.body)&&(el.scrollHeight||el.scrollWidth)&&(el.scrollWidth>width||el.scrollHeight>height)){width=el.scrollWidth;
2135 height=el.scrollHeight
2137 },getWindowScrollPosition:function(){var top=0,left=0,el;
2140 }else{if((el=this.document.body)&&(el.scrollTop||el.scrollLeft)){top=el.scrollTop;
2141 left=el.scrollLeft
2142 }else{if((el=this.document.documentElement)&&(el.scrollTop||el.scrollLeft)){top=el.scrollTop;
2143 left=el.scrollLeft
2148 }},getElementPosition:function(el){var left=0;
2150 do{left+=el.offsetLeft;
2151 top+=el.offsetTop
2152 }while(el=el.offsetParent);
2154 },getElementBox:function(el){var result={};
2155 if(el.getBoundingClientRect){var rect=el.getBoundingClientRect();
2162 }else{var position=this.getElementPosition(el);
2165 result.height=el.offsetHeight;
2166 result.width=el.offsetWidth
2168 },getMeasurement:function(el,name){var result={value:0,unit:"px"};
2169 var cssValue=this.getStyle(el,name);
2177 },getMeasurementInPixels:function(el,name){if(!el){return null
2178 }var m=this.getMeasurement(el,name);
2183 }else{if(unit=="em"){return this.emToPixels(el,value)
2184 }else{if(unit=="%"){return this.percentToPixels(el,value)
2185 }else{if(unit=="ex"){return this.exToPixels(el,value)
2186 }}}}}},getMeasurementBox1:function(el,name){var sufixes=["Top","Left","Bottom","Right"];
2190 i++){result[i]=Math.round(this.getMeasurementInPixels(el,name+sufix))
2192 },getMeasurementBox:function(el,name){var result=[];
2199 cssValue=el.currentStyle[propName]||el.style[propName];
2200 if(cssValue=="auto"){if(!autoMargin){autoMargin=this.getCSSAutoMarginBox(el)
2202 }else{result[i]=this.getMeasurementInPixels(el,propName)
2205 i++){result[i]=this.getMeasurementInPixels(el,name+sufix)
2207 },getCSSAutoMarginBox:function(el){if(isIE&&" meta title input script link a ".indexOf(" "+el.nodeName.toLowerCase()+" ")!=-1){return{top:0,left:0,bottom:0,right:0}
2208 }if(isIE&&" h1 h2 h3 h4 h5 h6 h7 ul p ".indexOf(" "+el.nodeName.toLowerCase()+" ")==-1){return{top:0,left:0,bottom:0,right:0}
2214 var clone=el.cloneNode(false);
2225 },getFontSizeInPixels:function(el){var size=this.getMeasurement(el,"fontSize");
2227 }var computeDirtyFontSize=function(el,calibration){var div=this.document.createElement("div");
2232 el.appendChild(div);
2234 el.removeChild(div);
2238 var value=computeDirtyFontSize(el);
2243 },emToPixels:function(el,value){if(!el){return null
2244 }var fontSize=this.getFontSizeInPixels(el);
2246 },exToPixels:function(el,value){if(!el){return null
2249 el.appendChild(div);
2251 el.removeChild(div);
2253 },percentToPixels:function(el,value){if(!el){return null
2256 el.appendChild(div);
2258 el.removeChild(div);
2260 },getStyle:isIE?function(el,name){return el.currentStyle[name]||el.style[name]||undefined
2261 }:function(el,name){return this.document.defaultView.getComputedStyle(el,null)[name]||el.style[name]||undefined
3556 }},drawOutline:function(el){var border=2;
3561 var box=Firebug.browser.getElementBox(el);
3605 },drawBoxModel:function(el){if(!el||!el.parentNode){return
3606 }var box=Firebug.browser.getElementBox(el);
3615 var margin=Firebug.browser.getMeasurementBox(el,"margin");
3616 var padding=Firebug.browser.getMeasurementBox(el,"padding");
3617 var border=Firebug.browser.getMeasurementBox(el,"border");
3672 var createOutlineInspector=function createOutlineInspector(){for(var name in outline){var el=outlineElements[name]=createGlobalElement("div");
3673 el.id=name;
3674 el.firebugIgnore=true;
3675 el.style.cssText=inspectStyle+outlineStyle[outline[name]];
3676 offlineFragment.appendChild(el)
3678 var destroyOutlineInspector=function destroyOutlineInspector(){for(var name in outline){var el=outlineElements[name];
3679 el.parentNode.removeChild(el)
6457 },select:function(el){var id=el&&ElementCache(el);
6570 }var el=ElementCache.get(uid.value);
6571 var nodeName=el.nodeName.toLowerCase();
6574 }if(el.id=="FirebugUI"||" html head body br script link iframe ".indexOf(" "+nodeName+" ")!=-1){FBL.Firebug.Inspector.hideBoxModel();
6577 }if((new Date().getTime()-hoverElementTS>40)&&hoverElement!=el){hoverElementTS=new Date().getTime();
6578 hoverElement=el;
6579 FBL.Firebug.Inspector.drawBoxModel(el)
7486 },addStateChangeHandlers:function(el){this.removeStateChangeHandlers();
7487 this.stateChangeEl=el