Skip to content

Commit

Permalink
Need dirty() to be virtual to override in special cases.
Browse files Browse the repository at this point in the history
See, for example ReactShadowNode in the ReactAndroid code base, which overrides this virtual.
  • Loading branch information
rozele committed Jan 5, 2016
1 parent 219bdae commit 3d7bc48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/csharp/Facebook.CSSLayout/CSSConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Facebook.CSSLayout
{
public static class CSSConstants
{
public static readonly float Undefined = float.NaN;
public const float Undefined = float.NaN;

public static bool IsUndefined(float value)
{
Expand Down
2 changes: 1 addition & 1 deletion src/csharp/Facebook.CSSLayout/CSSNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public bool HasNewLayout
get { return mLayoutState == LayoutState.HAS_NEW_LAYOUT; }
}

internal protected void dirty()
internal protected virtual void dirty()
{
if (mLayoutState == LayoutState.DIRTY)
{
Expand Down

0 comments on commit 3d7bc48

Please sign in to comment.