Remove usage of to-be-deprecated GWT DOM helper methods
These are not all currently deprecated, but are deprecated in GWT master, e.g.: https://gwt.googlesource.com/gwt/+/a6044a4a54c352b2709d27dd1907e977ce1607ad This change was produced with an automated tool courtesy of the GWT team. Change-Id: Ie5401a3e2231bad7099c4ff35e2c64d77cbbb33b
This commit is contained in:
@@ -175,14 +175,14 @@ public class ApprovalTable extends Composite {
|
||||
|
||||
private void removeAllChildren(Element el) {
|
||||
for (int i = DOM.getChildCount(el) - 1; i >= 0; i--) {
|
||||
DOM.removeChild(el, DOM.getChild(el, i));
|
||||
el.removeChild(DOM.getChild(el, i));
|
||||
}
|
||||
}
|
||||
|
||||
private void addMissingLabel(String text) {
|
||||
Element li = DOM.createElement("li");
|
||||
li.setClassName(Gerrit.RESOURCES.css().missingApproval());
|
||||
DOM.setInnerText(li, text);
|
||||
li.setInnerText(text);
|
||||
DOM.appendChild(missing.getElement(), li);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user