Introduce CSSNode.Create API

Summary:
Add a convenience construction method for CSSNode.

    CSSNode node = CSSNode.Create(
        positionType: CSSPositionType.Absolute,
        wrap: CSSWrap.Wrap,
        position: new Spacing(top:6, right:4),
        margin: new Spacing(bottom:5, left:3));

Reviewed By: emilsjolander

Differential Revision: D4193380

fbshipit-source-id: 30b917f64e92997355a76e3b11799883b86fb9de
This commit is contained in:
Kazuki Sakamoto
2016-11-17 07:03:30 -08:00
committed by Facebook Github Bot
parent 32ba5ae647
commit 7e4bb732ff
4 changed files with 409 additions and 1 deletions

View File

@@ -15,7 +15,7 @@ using System.Text;
namespace Facebook.CSSLayout
{
public class CSSNode : IEnumerable<CSSNode>
public partial class CSSNode : IEnumerable<CSSNode>
{
private IntPtr _cssNode;
private WeakReference _parent;