Need dirty() to be virtual to override in special cases.

See, for example ReactShadowNode in the ReactAndroid code base, which overrides this virtual.
This commit is contained in:
Eric Rozell
2016-01-05 08:55:32 -05:00
parent 219bdaed15
commit 3d7bc48fa6
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)
{ {