Bug 949561 - The VariablesView and SideMenuWidget should use hardware acceleration when possible, r=fitzgen

This commit is contained in:
Victor Porof 2013-12-12 22:14:29 +02:00
parent e8291ba700
commit 856ca96499
4 changed files with 32 additions and 0 deletions

View File

@ -913,6 +913,7 @@ VariablesView.prototype = {
label.className = "variables-view-empty-notice";
label.setAttribute("value", this._emptyTextValue);
this._parent.setAttribute("empty", "");
this._parent.appendChild(label);
this._emptyTextNode = label;
},
@ -925,6 +926,7 @@ VariablesView.prototype = {
return;
}
this._parent.removeAttribute("empty");
this._parent.removeChild(this._emptyTextNode);
this._emptyTextNode = null;
},

View File

@ -269,6 +269,11 @@
/* SideMenuWidget */
.side-menu-widget-container {
/* Hack: force hardware acceleration */
transform: translateX(0px);
}
.side-menu-widget-container[theme="dark"] {
background: url(background-noise-toolbar.png), hsl(208,11%,27%);
color: #fff;
@ -432,6 +437,11 @@
/* VariablesView */
.variables-view-container:not([empty]) {
/* Hack: force hardware acceleration */
transform: translateX(1px);
}
.variables-view-empty-notice {
color: GrayText;
padding: 2px;

View File

@ -269,6 +269,11 @@
/* SideMenuWidget */
.side-menu-widget-container {
/* Hack: force hardware acceleration */
transform: translateX(0px);
}
.side-menu-widget-container[theme="dark"] {
background: url(background-noise-toolbar.png), hsl(208,11%,27%);
color: #fff;
@ -426,6 +431,11 @@
/* VariablesView */
.variables-view-container:not([empty]) {
/* Hack: force hardware acceleration */
transform: translateX(1px);
}
.variables-view-empty-notice {
color: GrayText;
padding: 2px;

View File

@ -273,6 +273,11 @@
/* SideMenuWidget */
.side-menu-widget-container {
/* Hack: force hardware acceleration */
transform: translateX(0px);
}
.side-menu-widget-container[theme="dark"] {
background: url(background-noise-toolbar.png), hsl(208,11%,27%);
color: #fff;
@ -429,6 +434,11 @@
/* VariablesView */
.variables-view-container:not([empty]) {
/* Hack: force hardware acceleration */
transform: translateX(1px);
}
.variables-view-empty-notice {
color: GrayText;
padding: 2px;