Merge pull request #159 from CatalystCode/dirty

Need dirty() to be virtual to override in special cases.
This commit is contained in:
Christopher Chedeau
2016-01-05 07:19:23 -08:00
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ namespace Facebook.CSSLayout
{ {
public static class CSSConstants public static class CSSConstants
{ {
public static readonly float Undefined = float.NaN; public const float Undefined = float.NaN;
public static bool IsUndefined(float value) public static bool IsUndefined(float value)
{ {

View File

@@ -179,7 +179,7 @@ namespace Facebook.CSSLayout
get { return mLayoutState == LayoutState.HAS_NEW_LAYOUT; } get { return mLayoutState == LayoutState.HAS_NEW_LAYOUT; }
} }
internal protected void dirty() internal protected virtual void dirty()
{ {
if (mLayoutState == LayoutState.DIRTY) if (mLayoutState == LayoutState.DIRTY)
{ {