Add option to use aspect-ratio in test fixtures

Summary: Wires up codegen for aspect-ratio styles in JS, Java and CPP gentest fixtures.

Reviewed By: NickGerleman

Differential Revision: D50225805

fbshipit-source-id: 660a3999eab24611b7c2d2e073b1d55180a5d4f0
This commit is contained in:
Eric Rozell
2023-10-12 15:02:00 -07:00
committed by Facebook GitHub Bot
parent fad4d50b8e
commit a876372357
4 changed files with 35 additions and 0 deletions

View File

@@ -219,6 +219,20 @@ CPPEmitter.prototype = Object.create(Emitter.prototype, {
},
},
YGNodeStyleSetAspectRatio: {
value: function (nodeName, value) {
this.push(
'YGNodeStyleSetAspectRatio' +
toFunctionName(value) +
'(' +
nodeName +
', ' +
toValueCpp(value) +
');',
);
},
},
YGNodeStyleSetBorder: {
value: function (nodeName, edge, value) {
this.push(