зеркало из https://github.com/mozilla/gecko-dev.git
Bug 736014 - "Copy rule" with some text selected copies that text additionally; r=paul
This commit is contained in:
Родитель
f3b305cc58
Коммит
058a00936f
|
@ -1247,6 +1247,10 @@ InspectorUI.prototype = {
|
|||
if (computed) {
|
||||
computed.parentNode.removeChild(computed);
|
||||
}
|
||||
let autosizer = node.querySelector(".autosizer");
|
||||
if (autosizer) {
|
||||
autosizer.parentNode.removeChild(autosizer);
|
||||
}
|
||||
}
|
||||
|
||||
let text = node.textContent;
|
||||
|
|
|
@ -1375,6 +1375,7 @@ InplaceEditor.prototype = {
|
|||
// up to the client), and b) without tweaking the style of the
|
||||
// original element, it might wrap differently or something.
|
||||
this._measurement = this.doc.createElementNS(HTML_NS, "span");
|
||||
this._measurement.className = "autosizer";
|
||||
this.elt.parentNode.appendChild(this._measurement);
|
||||
let style = this._measurement.style;
|
||||
style.visibility = "hidden";
|
||||
|
|
Загрузка…
Ссылка в новой задаче