From e6fbd3794dc398163b437b99bc1074756e446616 Mon Sep 17 00:00:00 2001 From: Rob Campbell Date: Sat, 5 May 2012 06:35:00 -0300 Subject: [PATCH 01/14] Bug 751164 - Convert debugger.xul to XUL, remove HTML bits.; r=past --- browser/devtools/debugger/debugger-view.js | 33 +++--- browser/devtools/debugger/debugger.css | 16 +-- browser/devtools/debugger/debugger.xul | 120 ++++++++++++--------- 3 files changed, 83 insertions(+), 86 deletions(-) diff --git a/browser/devtools/debugger/debugger-view.js b/browser/devtools/debugger/debugger-view.js index cb24b5bf936..a8b836a12ca 100644 --- a/browser/devtools/debugger/debugger-view.js +++ b/browser/devtools/debugger/debugger-view.js @@ -511,27 +511,22 @@ StackFramesView.prototype = { * @param string aState * Either "paused" or "attached". */ - updateState: function DVF_updateState(aState) { - let resume = document.getElementById("resume"); - let status = document.getElementById("status"); + updateState: function DVF_updateState(aState) { + let resume = document.getElementById("resume"); - // If we're paused, show a pause label and a resume label on the button. - if (aState == "paused") { - status.textContent = L10N.getStr("pausedState"); - resume.label = L10N.getStr("resumeLabel"); - } - // If we're attached, do the opposite. - else if (aState == "attached") { - status.textContent = L10N.getStr("runningState"); - resume.label = L10N.getStr("pauseLabel"); - } - // No valid state parameter. - else { - status.textContent = ""; - } + // If we're paused, show a pause label and a resume label on the button. + if (aState == "paused") { + resume.label = L10N.getStr("resumeLabel"); + resume.setAttribute("checked", true); + } + // If we're attached, do the opposite. + else if (aState == "attached") { + resume.label = L10N.getStr("pauseLabel"); + resume.removeAttribute("checked"); + } - DebuggerView.Scripts.clearSearch(); - }, + DebuggerView.Scripts.clearSearch(); + }, /** * Removes all elements from the stackframes container, leaving it empty. diff --git a/browser/devtools/debugger/debugger.css b/browser/devtools/debugger/debugger.css index ebcef14ae2b..385175aa018 100644 --- a/browser/devtools/debugger/debugger.css +++ b/browser/devtools/debugger/debugger.css @@ -43,18 +43,10 @@ * Debugger content */ -#dbg-content > * > .vbox { +#dbg-content > * > div { cursor: default; } -/** - * Debugger statusbar - */ - -#dbg-statusbar { - -moz-appearance: statusbar; -} - /** * Stack frames */ @@ -172,12 +164,6 @@ /** * Display helpers */ - -.hbox { - display: -moz-box; - -moz-box-orient: horizontal; -} - .vbox { display: -moz-box; -moz-box-orient: vertical; diff --git a/browser/devtools/debugger/debugger.xul b/browser/devtools/debugger/debugger.xul index e4401265d0e..a049a6bd655 100644 --- a/browser/devtools/debugger/debugger.xul +++ b/browser/devtools/debugger/debugger.xul @@ -23,6 +23,7 @@ - Dave Camp - Panos Astithas - Victor Porof + - Rob Campbell - - Alternatively, the contents of this file may be used under the terms of - either the GNU General Public License Version 2 or later (the "GPL"), or @@ -40,6 +41,7 @@ + @@ -48,59 +50,73 @@ - + - - - +