Remove flex shorthand getter because it doesnt make a lot of sense
Summary: It doesn't make sense to have a getter for the shorthand as it is the computed flexGrow and flexShrink values that you should care about. Reviewed By: gkassabli Differential Revision: D4064674 fbshipit-source-id: 69935b85042020b4e8c61a393c1be8f4d42a6674
This commit is contained in:
committed by
Facebook Github Bot
parent
c28429efc8
commit
4c57029a28
@@ -302,16 +302,6 @@ void CSSNodeStyleSetFlex(const CSSNodeRef node, const float flex) {
|
||||
}
|
||||
}
|
||||
|
||||
float CSSNodeStyleGetFlex(const CSSNodeRef node) {
|
||||
if (CSSNodeStyleGetFlexGrow(node) > 0) {
|
||||
return CSSNodeStyleGetFlexGrow(node);
|
||||
} else if (CSSNodeStyleGetFlexShrink(node) > 0) {
|
||||
return -CSSNodeStyleGetFlexShrink(node);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define CSS_NODE_PROPERTY_IMPL(type, name, paramName, instanceName) \
|
||||
void CSSNodeSet##name(const CSSNodeRef node, type paramName) { \
|
||||
node->instanceName = paramName; \
|
||||
|
Reference in New Issue
Block a user