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:
committed by
Facebook GitHub Bot
parent
92860077f9
commit
301ed20296
@@ -679,7 +679,7 @@ function getRoundedSize(node) {
|
||||
};
|
||||
}
|
||||
|
||||
function calculateTree(root, roundToPixelGrid) {
|
||||
function calculateTree(root) {
|
||||
const rootLayout = [];
|
||||
|
||||
for (let i = 0; i < root.children.length; i++) {
|
||||
@@ -690,7 +690,7 @@ function calculateTree(root, roundToPixelGrid) {
|
||||
top: child.offsetTop + child.parentNode.clientTop,
|
||||
width: child.offsetWidth,
|
||||
height: child.offsetHeight,
|
||||
children: calculateTree(child, roundToPixelGrid),
|
||||
children: calculateTree(child),
|
||||
style: getYogaStyle(child),
|
||||
declaredStyle: child.style,
|
||||
rawStyle: child.getAttribute('style'),
|
||||
|
Reference in New Issue
Block a user