Fix build and clean up
Summary: - bit operation with long - Clean up _measureOutput which is no longer needed - Fix unittests (SetMeasureFunction, unused error) Reviewed By: emilsjolander Differential Revision: D4082401 fbshipit-source-id: b3b2dd002d108c5b43f36a4a73ce8e5233281b45
This commit is contained in:
committed by
Facebook Github Bot
parent
2cac77eaa1
commit
3201e24780
@@ -44,6 +44,7 @@ namespace Facebook.CSSLayout
|
||||
{
|
||||
CSSNode parent = new CSSNode();
|
||||
foreach (CSSNode node in parent) {
|
||||
Assert.Fail(node.ToString());
|
||||
}
|
||||
|
||||
CSSNode child0 = new CSSNode();
|
||||
@@ -302,9 +303,8 @@ namespace Facebook.CSSLayout
|
||||
{
|
||||
CSSNode child = new CSSNode();
|
||||
parent.Insert(0, child);
|
||||
child.SetMeasureFunction((_, width, widthMode, height, heightMode, measureResult) => {
|
||||
measureResult.Width = 120;
|
||||
measureResult.Height = 130;
|
||||
child.SetMeasureFunction((_, width, widthMode, height, heightMode) => {
|
||||
return MeasureOutput.Make(120, 130);
|
||||
});
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user