More efficient resetResult() loop in LayoutEngine

This commit is contained in:
Lucas Rocha
2015-09-09 17:10:16 +01:00
parent 909c14117f
commit 2d869489ef

View File

@@ -329,7 +329,7 @@ public class LayoutEngine {
CSSNode node, CSSNode node,
float parentMaxWidth, float parentMaxWidth,
CSSDirection parentDirection) { CSSDirection parentDirection) {
for (int i = 0; i < node.getChildCount(); i++) { for (int i = 0, childCount = node.getChildCount(); i < childCount; i++) {
node.getChildAt(i).layout.resetResult(); node.getChildAt(i).layout.resetResult();
} }