Move YGStyle to seperate file and add constructors

Summary: Moved YGStyle to separate file and added default constructor to it. This diff also gets rid off of the default values, which were earlier declared in Yoga-interna.h and instead uses default constructor. This diff also addresses https://github.com/facebook/yoga/pull/700

Reviewed By: emilsjolander

Differential Revision: D7016575

fbshipit-source-id: eb28df0ffb4cc813b23edaff80d7d4ebc56ce6af
This commit is contained in:
Pritesh Nandgaonkar
2018-02-20 05:41:48 -08:00
committed by Facebook Github Bot
parent bbdb62e654
commit 52f2cf319a
8 changed files with 262 additions and 155 deletions

View File

@@ -382,7 +382,7 @@ YGNode::YGNode()
measure_(nullptr),
baseline_(nullptr),
dirtied_(nullptr),
style_(gYGNodeStyleDefaults),
style_(YGStyle()),
layout_(gYGNodeLayoutDefaults),
lineIndex_(0),
parent_(nullptr),