зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1391994 Part 2: Use the new SetAttributeDevtools methods in callsites where devtools modifies a node it hasn't just created. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D41319 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
59271a70be
Коммит
f6f97abc9b
|
@ -655,13 +655,13 @@ const NodeActor = protocol.ActorClassWithSpec(nodeSpec, {
|
|||
rawNode.removeAttribute(change.attributeName);
|
||||
}
|
||||
} else if (change.attributeNamespace) {
|
||||
rawNode.setAttributeNS(
|
||||
rawNode.setAttributeDevtoolsNS(
|
||||
change.attributeNamespace,
|
||||
change.attributeName,
|
||||
change.newValue
|
||||
);
|
||||
} else {
|
||||
rawNode.setAttribute(change.attributeName, change.newValue);
|
||||
rawNode.setAttributeDevtools(change.attributeName, change.newValue);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -1686,7 +1686,7 @@ var StyleRuleActor = protocol.ActorClassWithSpec(styleRuleSpec, {
|
|||
|
||||
if (this.type === ELEMENT_STYLE) {
|
||||
// For element style rules, set the node's style attribute.
|
||||
this.rawNode.setAttribute("style", newText);
|
||||
this.rawNode.setAttributeDevtools("style", newText);
|
||||
} else {
|
||||
// For stylesheet rules, set the text in the stylesheet.
|
||||
const parentStyleSheet = this.pageStyle._sheetRef(this._parentSheet);
|
||||
|
|
Загрузка…
Ссылка в новой задаче