зеркало из https://github.com/mozilla/gecko-dev.git
Bug 920509 - [app manager] Don't use hiddenDOMWindow in styles.js. r=dcamp
This commit is contained in:
Родитель
1f8f1190e4
Коммит
650189ea89
|
@ -715,8 +715,15 @@ var StyleRuleActor = protocol.ActorClass({
|
|||
|
||||
// Use a fresh element for each call to this function to prevent side effects
|
||||
// that pop up based on property values that were already set on the element.
|
||||
let tempElement = Services.appShell.hiddenDOMWindow.
|
||||
document.createElement("div");
|
||||
|
||||
let document;
|
||||
if (this.rawNode) {
|
||||
document = this.rawNode.ownerDocument;
|
||||
} else {
|
||||
document = this.rawRule.parentStyleSheet.ownerNode.ownerDocument;
|
||||
}
|
||||
|
||||
let tempElement = document.createElement("div");
|
||||
|
||||
for (let mod of modifications) {
|
||||
if (mod.type === "set") {
|
||||
|
|
Загрузка…
Ссылка в новой задаче