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:
committed by
Facebook GitHub Bot
parent
fad4d50b8e
commit
a876372357
@@ -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(
|
||||
|
Reference in New Issue
Block a user