Support for (de)serializing node state (#1570)
Summary: Pull Request resolved: https://github.com/facebook/yoga/pull/1570 X-link: https://github.com/facebook/react-native/pull/42751 tsia. Need node state Changelog: [Internal] Reviewed By: NickGerleman Differential Revision: D53206323 fbshipit-source-id: eb48c3873536eb52c8ffcce8005725da274e5373
This commit is contained in:
committed by
Facebook GitHub Bot
parent
f90ad378ff
commit
753b319977
@@ -329,6 +329,10 @@ void YGNodeSetAlwaysFormsContainingBlock(
|
||||
resolveRef(node)->setAlwaysFormsContainingBlock(alwaysFormsContainingBlock);
|
||||
}
|
||||
|
||||
bool YGNodeGetAlwaysFormsContainingBlock(YGNodeConstRef node) {
|
||||
return resolveRef(node)->alwaysFormsContainingBlock();
|
||||
}
|
||||
|
||||
// TODO: This leaks internal details to the public API. Remove after removing
|
||||
// ComponentKit usage of it.
|
||||
bool YGNodeCanUseCachedMeasurement(
|
||||
|
@@ -273,6 +273,14 @@ YG_EXPORT void YGNodeSetAlwaysFormsContainingBlock(
|
||||
YGNodeRef node,
|
||||
bool alwaysFormsContainingBlock);
|
||||
|
||||
/**
|
||||
* Whether the node will always form a containing block for any descendant. This
|
||||
* can happen in situation where the client implements something like a
|
||||
* transform that can affect containing blocks but is not handled by Yoga
|
||||
* directly.
|
||||
*/
|
||||
YG_EXPORT bool YGNodeGetAlwaysFormsContainingBlock(YGNodeConstRef node);
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
|
Reference in New Issue
Block a user