Files
yoga/yoga
Valentin Shergin 0767f4d105 Using YGPositionTypeAbsolute value where we compare absolute vs relative
Summary:
Now Yoga.cpp does not use the `YGPositionTypeRelative` value/constant, it uses `YGPositionTypeAbsolute` instead.
Now `YGPositionType` can only be `YGPositionTypeRelative` or `YGPositionTypeAbsolute`, so expressions `x == YGPositionTypeRelative` and `x != YGPositionTypeAbsolute` are equivalent.
The reasoning behind the change is that in all cases we actually check a node to be (or not to be) `absolute`, not `relative`. This will make a difference in the coming diffs in the stack when we will introduce a new value for the type: `static`.

We need to differentiate `static` and `relative` values t implement the `stacking context` feature in the W3C-compliant way (to fix bugs and avoid developer confusion). Read more here:
https://developer.mozilla.org/en-US/docs/Web/CSS/position

Changelog: [Internal] Internal change in Yoga.

Reviewed By: SidharthGuglani

Differential Revision: D22386733

fbshipit-source-id: 8e2c2b88b404660639f845783c8f93f0c62c0fbb
2020-07-14 15:31:07 -07:00
..
2019-10-15 10:36:38 -07:00
2019-11-22 04:51:12 -08:00
2019-10-15 10:36:38 -07:00
2019-10-15 10:36:38 -07:00
2019-10-15 10:36:38 -07:00
2019-10-15 10:36:38 -07:00
2019-10-15 10:36:38 -07:00
2019-10-15 10:36:38 -07:00
2019-10-15 10:36:38 -07:00
2019-10-15 10:36:38 -07:00
2019-10-15 10:36:38 -07:00
2019-10-15 10:36:38 -07:00