Lines Matching refs:doc

94 var waitForDocument=function waitForDocument(){var doc=FBL.Env.browser.document;
95 var body=doc.getElementsByTagName("body")[0];
96 if(body){calculatePixelsPerInch(doc,body);
118 var doc=document;
119 var script=doc.getElementById("FirebugLite");
127 }}else{for(var i=0,s=doc.getElementsByTagName("script"),si;
258 }this.createStyleSheet=function(doc,url){var style=this.createElement("link");
266 this.addStyleSheet=function(doc,style){var heads=doc.getElementsByTagName("head");
268 }else{doc.documentElement.appendChild(style)
270 this.appendStylesheet=function(doc,uri){if(this.$(uri,doc)){return
271 }var styleSheet=this.createStyleSheet(doc,uri);
273 this.addStyleSheet(doc,styleSheet)
275 this.addScript=function(doc,id,src){var element=doc.createElementNS("http://www.w3.org/1999/xhtml","html:script");
280 if(doc.documentElement){doc.documentElement.appendChild(element)
281 }else{if(FBTrace.DBG_ERRORS){FBTrace.sysout("lib.addScript doc has no documentElement:",doc)
800 this.$=function(id,doc){if(doc){return doc.getElementById(id)
803 this.$$=function(selector,doc){if(doc||!FBL.Firebug.chrome){return FBL.Firebug.Selector(selector,doc)
850 this.getBody=function(doc){if(doc.body){return doc.body
851 }var body=doc.getElementsByTagName("body")[0];
853 }return doc.firstChild
903 var doc=element.ownerDocument;
904 if(doc.createRange){var range=doc.createRange();
909 }else{if(!appendFragment||appendFragment.ownerDocument!=doc){appendFragment=doc.createDocumentFragment()
910 }var div=doc.createElement("div");
919 var doc=properties.document||FBL.Firebug.chrome.document;
920 var element=doc.createElement(tagName);
925 var doc=FBL.Env.browser.document;
926 var element=this.NS&&doc.createElementNS?doc.createElementNS(FBL.NS,tagName):doc.createElement(tagName);
975 this.addGlobalEvent=function(name,handler){var doc=this.Firebug.browser.document;
977 this.addEvent(doc,name,handler);
983 this.removeGlobalEvent=function(name,handler){var doc=this.Firebug.browser.document;
985 this.removeEvent(doc,name,handler);
1072 this.isSystemPage=function(win){try{var doc=win.document;
1073 if(!doc){return false
1074 }if((doc.styleSheets.length&&doc.styleSheets[0].href=="chrome://global/content/xml/XMLPrettyPrint.css")||(doc.styleSheets.length>1&&doc.styleSheets[1].href=="chrome://browser/skin/feeds/subscribe.css")){return true
1279 var getDomMemberMap2=function(name){if(!domMemberMap2Sandbox){var doc=Firebug.chrome.document;
1280 var frame=doc.createElement("iframe");
1284 doc.body.appendChild(frame);
1432 var fixIE6BackgroundImageCache=function(doc){doc=doc||document;
1433 try{doc.execCommand("BackgroundImageCache",false,true)
1436 var calculatePixelsPerInch=function calculatePixelsPerInch(doc,body){var inch=FBL.createGlobalElement("div");
1612 Firebug.Panel={name:"HelloWorld",title:"Hello World!",parentPanel:null,options:{hasCommandLine:false,hasStatusBar:false,hasToolButtons:false,isPreRendered:false,innerHTMLSync:false},tabNode:null,panelNode:null,sidePanelNode:null,statusBarNode:null,toolButtonsNode:null,panelBarNode:null,sidePanelBarBoxNode:null,sidePanelBarNode:null,sidePanelBar:null,searchable:false,editable:true,order:2147483647,statusSeparator:"<",create:function(context,doc){this.hasSidePanel=parentPanelMap.hasOwnProperty(this.name);
1676 }},reattach:function(doc){if(this.options.innerHTMLSync){this.synchronizeUI()
2336 }}}if(!useLocalSkin){var tpl=getChromeTemplate(!isChromeFrame),doc=isChromeFrame?node.contentWindow.document:node.document;
2337 doc.write(tpl);
2338 doc.close()
2358 }else{var doc=chrome.document;
2359 var script=doc.createElement("script");
2361 doc.getElementsByTagName("head")[0].appendChild(script)
2704 }},fixIEPosition:function(){var doc=this.document;
2705 var offset=isIE?doc.body.clientTop||doc.documentElement.clientTop:0;
2710 var bodyStyle=doc.body.currentStyle;
2719 var doc=FirebugChrome.chromeMap.frame.document;
2720 var mini=$("fbMiniChrome",doc);
2722 var miniIcon=$("fbMiniIcon",doc);
2725 var errors=$("fbMiniErrors",doc);
2736 }this.addController([$("fbMiniIcon",doc),"click",onMiniIconClick]);
2748 }var doc=FirebugChrome.chromeMap.frame.document;
2749 var mini=$("fbMiniChrome",doc);
2782 var waitMainWindow=function(){var doc,head;
2783 try{if(window.opener&&!window.opener.FirebugOldBrowser&&(doc=window.opener.document)){try{if(Env.isDebugMode){window.FBL=FBL
2950 },loadJSONP:function(url,callback){var script=createGlobalElement("script"),doc=Firebug.context.document,uid=""+new Date().getTime(),callbackName="callback=Firebug.Lite.Proxy._callbacks."+uid,jsonpURL=url.indexOf("?")!=-1?url+"&"+callbackName:url+"?"+callbackName;
2956 if(doc.documentElement){doc.documentElement.appendChild(script)
3068 (function(){var store=(function(){var api={},win=window,doc=win.document,localStorageName="localStorage",globalStorageName="globalStorage",namespace="__firebug__storejs__",storage;
3106 }else{if(doc.documentElement.addBehavior){var storage=doc.createElement("div");
3109 doc.documentElement.appendChild(storage);
3113 doc.documentElement.removeChild(storage);
4106 var doc=before.ownerDocument;
4107 var div=doc.createElement("div");
4128 },insertNode:function(args,doc,element,isAfter,self){if(!args){args={}
4132 var doc=element.ownerDocument;
4133 if(!womb||womb.ownerDocument!=doc){womb=doc.createElement("div")
4381 this.Document=domplate(Firebug.Rep,{tag:OBJECTLINK("Document ",SPAN({"class":"objectPropValue"},"$object|getLocation")),getLocation:function(doc){return doc.location?getFileName(doc.location.href):""
4383 },browseObject:function(doc,context){openNewTab(doc.location.href);
4385 },persistObject:function(doc,context){return this.persistor
4388 },getTooltip:function(doc){return doc.location.href
4708 }Firebug.InlineEditor=function(doc){this.initializeInline(doc)
4719 },initializeInline:function(doc){if(FBTrace.DBG_EDITOR){FBTrace.sysout("Firebug.InlineEditor initializeInline()")
4720 }this.box=this.tag.append({},doc.body,this);
4723 }this.expander=this.expanderTag.replace({},doc,this);
4957 var getDefaultEditor=function getDefaultEditor(panel){if(!defaultEditor){var doc=panel.document;
4958 defaultEditor=new Firebug.InlineEditor(doc)
5579 if(FBTrace.DBG_XMLVIEWER){FBTrace.sysout("xmlviewer.updateTabBody; XML response parsed",doc)
6236 Firebug.CommandLine=extend(Firebug.Module,{element:null,isMultiLine:false,isActive:false,initialize:function(doc){this.clear=bind(this.clear,this);
6243 },shutdown:function(doc){this.deactivate();
6432 }}}}}},appendTreeChildren:function(treeNode){var doc=Firebug.chrome.document;
6441 var children=doc.createElement("div");
6446 var closeElement=doc.createElement("div");
6676 var doc=browser.document;
6677 if(!doc){return
6678 }addEvent(doc,"mouseover",browser.onInfoTipMouseMove);
6679 addEvent(doc,"mouseout",browser.onInfoTipMouseOut);
6680 addEvent(doc,"mousemove",browser.onInfoTipMouseMove);
6681 return browser.infoTip=this.tags.infoTipTag.append({},getBody(doc))
6682 },uninitializeBrowser:function(browser){if(browser.infoTip){var doc=browser.document;
6683 removeEvent(doc,"mouseover",browser.onInfoTipMouseMove);
6684 removeEvent(doc,"mouseout",browser.onInfoTipMouseOut);
6685 removeEvent(doc,"mousemove",browser.onInfoTipMouseMove);
6821 CssAnalyzer.processAllStyleSheets=function(doc,styleSheetIterator){try{processAllStyleSheets(doc,styleSheetIterator)
6841 var processAllStyleSheets=function(doc,styleSheetIterator){styleSheetIterator=styleSheetIterator||processStyleSheet;
6843 var styleSheets=doc.styleSheets;
6855 }styleSheetIterator(doc,styleSheet);
6866 }styleSheetIterator(doc,importedStyleSheet)
6877 }styleSheetIterator(doc,importedStyleSheet)
6880 var processStyleSheet=function(doc,styleSheet){if(styleSheet.restricted){return
6910 var elements=Firebug.Selector(selector,doc);
6918 var loadExternalStylesheet=function(doc,styleSheetIterator,styleSheet){var url=styleSheet.href;
6942 doc.styleSheets[doc.styleSheets.length-1].externalURL=url;
6947 FBL.processAllStyleSheets(doc,styleSheetIterator);
7038 this.getElementsByXPath=function(doc,xpath){var nodes=[];
7039 try{var result=doc.evaluate(xpath,doc,null,XPathResult.ANY_TYPE,null);
7045 this.getRuleMatchingElements=function(rule,doc){var css=rule.selectorText;
7047 return this.getElementsByXPath(doc,xpath)
7253 var doc=Firebug.browser.document;
7255 CssAnalyzer.processAllStyleSheets(doc,function(doc,styleSheet){var key=StyleSheetCache.key(styleSheet);
7256 var fileName=getFileName(styleSheet.href)||getFileName(doc.location.href);
7465 }},ishow:function(state){},watchWindow:function(win){if(domUtils){var doc=win.document
7466 }},unwatchWindow:function(win){var doc=win.document;
7467 if(isAncestor(this.stateChangeEl,doc)){this.removeStateChangeHandlers()
7514 function CSSEditor(doc){this.initializeInline(doc)
7545 function CSSRuleEditor(doc){this.initializeInline(doc);
7588 function StyleSheetEditor(doc){this.box=this.tag.replace({},doc,this);
7673 var doc=Firebug.browser.document;
7674 var scripts=doc.getElementsByTagName("script");
7679 }var fileName=getFileName(script.src)||getFileName(doc.location.href);
7734 var doc=Firebug.browser.document;
7735 var script=doc.getElementsByTagName("script")[index];
7737 var isExternal=url&&url!=doc.location.href;
7750 var doc=Firebug.browser.document;
7759 path=rePath.exec(doc.location.href)[1];