Removes unnecessary CSSLayoutContext param from CalculateLayout
Summary: Closes #222 for the `csharp` implementation which does not use the `CSSLayoutContext` parameter in the `CalculateLayout` method call. Closes https://github.com/facebook/css-layout/pull/223 Reviewed By: lucasr Differential Revision: D3918948 Pulled By: emilsjolander fbshipit-source-id: 8708e08b226500727e33d131ed880bb7e077c08e
This commit is contained in:
committed by
Facebook Github Bot 0
parent
15d5cb0169
commit
9c93c7fc42
@@ -1,17 +0,0 @@
|
|||||||
/**
|
|
||||||
* Copyright (c) 2014-present, Facebook, Inc.
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the BSD-style license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree. An additional grant
|
|
||||||
* of patent rights can be found in the PATENTS file in the same directory.
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Facebook.CSSLayout
|
|
||||||
{
|
|
||||||
public class CSSLayoutContext
|
|
||||||
{
|
|
||||||
public MeasureOutput measureOutput { get; } = new MeasureOutput();
|
|
||||||
public int CurrentGenerationCount { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
@@ -628,7 +628,7 @@ namespace Facebook.CSSLayout
|
|||||||
Native.CSSNodeSetMeasureFunc(_cssNode, measureFunction != null ? _measureFunc : null);
|
Native.CSSNodeSetMeasureFunc(_cssNode, measureFunction != null ? _measureFunc : null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void CalculateLayout(CSSLayoutContext layoutContext)
|
public void CalculateLayout()
|
||||||
{
|
{
|
||||||
CheckDisposed();
|
CheckDisposed();
|
||||||
Native.CSSNodeCalculateLayout(_cssNode, CSSConstants.Undefined, CSSConstants.Undefined, Native.CSSNodeStyleGetDirection(_cssNode));
|
Native.CSSNodeCalculateLayout(_cssNode, CSSConstants.Undefined, CSSConstants.Undefined, Native.CSSNodeStyleGetDirection(_cssNode));
|
||||||
|
Reference in New Issue
Block a user