More efficient resetResult() loop in LayoutEngine
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user