Emil Sjolander
15f848e8d8
Only skip updating computed flex basis within the same generation
...
Reviewed By: dshahidehpour
Differential Revision: D4207106
fbshipit-source-id: fc1063ca79ecf75f6101aadded53bca96cb0585d
2016-11-20 05:13:28 -08:00
Lukas Wöhrl
687ae48cc7
use fmaxf to prevent casting from and to double
...
Summary:
Use ```fmaxf``` to prevent double casting.
Closes https://github.com/facebook/css-layout/pull/251
Reviewed By: emilsjolander
Differential Revision: D4199342
Pulled By: splhack
fbshipit-source-id: c04bc68a3c9c97b92e910e885457cf2fe00da28b
2016-11-17 20:43:44 -08:00
Lukas Wöhrl
ee285876d2
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
2016-11-17 20:43:44 -08:00
Lukas Wöhrl
fb4d9f204a
do not redefine isnan if already defined via math.h
...
Summary:
```isnan``` is already defined in ```math.h``` (at least when using VS13) so there is no need to redefine it. it also is a nan for float and not for double opposed to ```_isnan```
Closes https://github.com/facebook/css-layout/pull/253
Reviewed By: emilsjolander
Differential Revision: D4199331
Pulled By: splhack
fbshipit-source-id: 139fb0efd68dd5df79bbaef863a8e8b9246c795d
2016-11-17 20:43:44 -08:00
Lukas Wöhrl
1430458906
use size_t instead of unsigned long
...
Summary:
Use ```size_t```instead of ```unsinged long``` as this is the "offical" return type of ```strlen```. Is VS13 ```size_t``` is defined as ```unsigned long long``` which leads to a compiler warning.
Closes https://github.com/facebook/css-layout/pull/254
Reviewed By: emilsjolander
Differential Revision: D4199327
Pulled By: splhack
fbshipit-source-id: 5e1a91f282bf776e4d9f5806e6467dfe36c7a633
2016-11-17 20:43:43 -08:00
Kazuki Sakamoto
39a59caac1
Introduce CSSNodeCopyStyle
...
Reviewed By: emilsjolander
Differential Revision: D4188514
fbshipit-source-id: af8d7fb5e8688c64aea05ce7ad23fff9233fb441
2016-11-17 09:13:31 -08:00
Kazuki Sakamoto
c5f6e864f9
Workaround fix for Visual Studio
...
Reviewed By: emilsjolander
Differential Revision: D4191268
fbshipit-source-id: 53fdcc388292e76c2b97ad071f0d7c27d0613ecf
2016-11-17 08:58:55 -08:00
Kazuki Sakamoto
0d0f44439c
Fix memory func test
...
Reviewed By: emilsjolander
Differential Revision: D4193712
fbshipit-source-id: a4aba84d054d98a7baf438e213a90bd7ef34e979
2016-11-17 07:43:27 -08:00
Kazuki Sakamoto
e864c40be8
Introduce CSSLayoutSetMemoryFuncs
...
Reviewed By: emilsjolander
Differential Revision: D4178386
fbshipit-source-id: a79dbdaf82a512f42cc43f99dbc49faba296903b
2016-11-15 20:28:30 -08:00
Emil Sjolander
ffcdf25281
Autogenerate enum defenitions for all languages
...
Reviewed By: gkassabli
Differential Revision: D4174263
fbshipit-source-id: 478961a8f683e196704d3c6ea1505a05c85fcb10
2016-11-15 08:44:30 -08:00
Andy Street
3b20a39f7b
Move ReactCommon/CSSLayout to ReactCommon/CSSLayout/CSSLayout
...
Reviewed By: emilsjolander
Differential Revision: D4182345
fbshipit-source-id: 05cb4f0b0e7971d4f66e656ea89d876264a61bd4
2016-11-15 06:28:45 -08:00