Remove unused arg in calculateTree in gentest.js

Summary: tsia

Reviewed By: NickGerleman

Differential Revision: D51050456

fbshipit-source-id: bd3ef113bd612f6d257b9adce5501f8e8bb32d26
This commit is contained in:
Joe Vilches
2023-11-07 09:57:04 -08:00
committed by Facebook GitHub Bot
parent 92860077f9
commit 301ed20296

View File

@@ -679,7 +679,7 @@ function getRoundedSize(node) {
}; };
} }
function calculateTree(root, roundToPixelGrid) { function calculateTree(root) {
const rootLayout = []; const rootLayout = [];
for (let i = 0; i < root.children.length; i++) { for (let i = 0; i < root.children.length; i++) {
@@ -690,7 +690,7 @@ function calculateTree(root, roundToPixelGrid) {
top: child.offsetTop + child.parentNode.clientTop, top: child.offsetTop + child.parentNode.clientTop,
width: child.offsetWidth, width: child.offsetWidth,
height: child.offsetHeight, height: child.offsetHeight,
children: calculateTree(child, roundToPixelGrid), children: calculateTree(child),
style: getYogaStyle(child), style: getYogaStyle(child),
declaredStyle: child.style, declaredStyle: child.style,
rawStyle: child.getAttribute('style'), rawStyle: child.getAttribute('style'),