зеркало из https://github.com/mozilla/gecko-dev.git
Bug 761884 - Prevent LayoutView from causing infinite painting loops
This commit is contained in:
Родитель
d5e281c4cc
Коммит
9376556289
|
@ -294,7 +294,9 @@ LayoutView.prototype = {
|
|||
let clientRect = node.getBoundingClientRect();
|
||||
let width = Math.round(clientRect.width);
|
||||
let height = Math.round(clientRect.height);
|
||||
this.doc.querySelector("#element-size").textContent = width + "x" + height;
|
||||
if (this.doc.querySelector("#element-size").textContent != width + "x" + height) {
|
||||
this.doc.querySelector("#element-size").textContent = width + "x" + height;
|
||||
}
|
||||
|
||||
// If the view is closed, no need to do anything more.
|
||||
if (!this.isOpen) return;
|
||||
|
|
Загрузка…
Ссылка в новой задаче