From f47f31c191a6be8c090091bde04252ed3046e744 Mon Sep 17 00:00:00 2001 From: "neil%parkwaycc.co.uk" Date: Fri, 19 Dec 2003 21:47:21 +0000 Subject: [PATCH] Bug 133606 getAnonymousElementByAttribute now works r=caillon sr=bz --- .../inspector/resources/content/inspector.xml | 29 ++------ .../resources/content/consoleBindings.xml | 24 +------ .../content/bindings/colorpicker.xml | 14 ---- .../resources/content/bindings/toolbar.xml | 68 ++----------------- 4 files changed, 11 insertions(+), 124 deletions(-) diff --git a/extensions/inspector/resources/content/inspector.xml b/extensions/inspector/resources/content/inspector.xml index b86d7df83dc..ae64c3360f7 100644 --- a/extensions/inspector/resources/content/inspector.xml +++ b/extensions/inspector/resources/content/inspector.xml @@ -432,7 +432,7 @@ this.setAttribute("disabled", "true"); - this.mIFrameEl = this.getAnonElByAttr("anonid", "viewer-iframe"); + this.mIFrameEl = document.getAnonymousElementByAttribute(this, "anonid", "viewer-iframe"); ]]> - - - - - - - 0) - return kids2[0]; - } - return null; - ]]> - diff --git a/xpfe/components/console/resources/content/consoleBindings.xml b/xpfe/components/console/resources/content/consoleBindings.xml index d9f90571c29..724582210f7 100644 --- a/xpfe/components/console/resources/content/consoleBindings.xml +++ b/xpfe/components/console/resources/content/consoleBindings.xml @@ -75,8 +75,8 @@ observe : function(aObject) { this.console.appendItem(aObject); } }; - this.mConsoleRowBox = this.getAnonElByAttr("role", "console-rows"); - this.mStrBundle = this.getAnonElByAttr("role", "string-bundle"); + this.mConsoleRowBox = document.getAnonymousElementByAttribute(this, "role", "console-rows"); + this.mStrBundle = document.getAnonymousElementByAttribute(this, "role", "string-bundle"); try { var isupports = Components.classes['@mozilla.org/consoleservice;1'].getService(); @@ -248,26 +248,6 @@ --this.mCount; ]]> - - - - - - - - 0) - return kids2[0]; - } - return null; - ]]> - diff --git a/xpfe/global/resources/content/bindings/colorpicker.xml b/xpfe/global/resources/content/bindings/colorpicker.xml index 37a47777ffc..0693ba01878 100644 --- a/xpfe/global/resources/content/bindings/colorpicker.xml +++ b/xpfe/global/resources/content/bindings/colorpicker.xml @@ -472,20 +472,6 @@ ]]> - - - 0) - return results[0]; - } - return null; - ]]> - - - - - - - - - - - - - - - - - - @@ -263,25 +224,6 @@ this.parentNode.createCollapsedGrippy(this); ]]> - - - - - - - -