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:
mattpodwysocki
2016-09-27 04:34:52 -07:00
committed by Facebook Github Bot 0
parent 15d5cb0169
commit 9c93c7fc42
2 changed files with 1 additions and 18 deletions

View File

@@ -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; }
}
}

View File

@@ -628,7 +628,7 @@ namespace Facebook.CSSLayout
Native.CSSNodeSetMeasureFunc(_cssNode, measureFunction != null ? _measureFunc : null);
}
public void CalculateLayout(CSSLayoutContext layoutContext)
public void CalculateLayout()
{
CheckDisposed();
Native.CSSNodeCalculateLayout(_cssNode, CSSConstants.Undefined, CSSConstants.Undefined, Native.CSSNodeStyleGetDirection(_cssNode));