Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(323)

Unified Diff: frontend/client/src/autotest/common/DomUtils.java

Issue 1595019: Merge remote branch 'origin/upstream' into tempbranch (Closed)
Patch Set: Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: frontend/client/src/autotest/common/DomUtils.java
diff --git a/frontend/client/src/autotest/common/DomUtils.java b/frontend/client/src/autotest/common/DomUtils.java
new file mode 100644
index 0000000000000000000000000000000000000000..288a290fb520020138c670884cf3b45da5a5baf3
--- /dev/null
+++ b/frontend/client/src/autotest/common/DomUtils.java
@@ -0,0 +1,14 @@
+package autotest.common;
+
+import com.google.gwt.dom.client.Element;
+
+public class DomUtils {
+ public static void clearDomChildren(Element elem) {
+ Element child = elem.getFirstChildElement();
+ while (child != null) {
+ Element nextChild = child.getNextSiblingElement();
+ elem.removeChild(child);
+ child = nextChild;
+ }
+ }
+}
« no previous file with comments | « frontend/client/src/autotest/afe/JobStatusDataSource.java ('k') | frontend/client/src/autotest/common/JsonRpcProxy.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698