Change more method arguments to const

Summary:
Change more method arguments to ```const```
Closes https://github.com/facebook/css-layout/pull/252

Reviewed By: emilsjolander

Differential Revision: D4199335

Pulled By: splhack

fbshipit-source-id: f54fccaea8051a49c6cdf0fcaf1a68c025ba26da
This commit is contained in:
Lukas Wöhrl
2016-11-17 20:41:47 -08:00
committed by Facebook Github Bot
parent 542fc50409
commit 653150a7c4

View File

@@ -350,7 +350,7 @@ void CSSNodeCopyStyle(const CSSNodeRef dstNode, const CSSNodeRef srcNode) {
} }
} }
inline float CSSNodeStyleGetFlexGrow(CSSNodeRef node) { inline float CSSNodeStyleGetFlexGrow(const CSSNodeRef node) {
if (!CSSValueIsUndefined(node->style.flexGrow)) { if (!CSSValueIsUndefined(node->style.flexGrow)) {
return node->style.flexGrow; return node->style.flexGrow;
} }
@@ -360,7 +360,7 @@ inline float CSSNodeStyleGetFlexGrow(CSSNodeRef node) {
return 0; return 0;
} }
inline float CSSNodeStyleGetFlexShrink(CSSNodeRef node) { inline float CSSNodeStyleGetFlexShrink(const CSSNodeRef node) {
if (!CSSValueIsUndefined(node->style.flexShrink)) { if (!CSSValueIsUndefined(node->style.flexShrink)) {
return node->style.flexShrink; return node->style.flexShrink;
} }
@@ -370,7 +370,7 @@ inline float CSSNodeStyleGetFlexShrink(CSSNodeRef node) {
return 0; return 0;
} }
inline float CSSNodeStyleGetFlexBasis(CSSNodeRef node) { inline float CSSNodeStyleGetFlexBasis(const CSSNodeRef node) {
if (!CSSValueIsUndefined(node->style.flexBasis)) { if (!CSSValueIsUndefined(node->style.flexBasis)) {
return node->style.flexBasis; return node->style.flexBasis;
} }