mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 736014 - "Copy rule" with some text selected copies that text additionally; r=paul
This commit is contained in:
parent
93034120e5
commit
1c78bee43d
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user