More efficient resetResult() loop in LayoutEngine
This commit is contained in:
@@ -329,7 +329,7 @@ public class LayoutEngine {
|
||||
CSSNode node,
|
||||
float parentMaxWidth,
|
||||
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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user