Skip to content

Commit

Permalink
Merge pull request #159 from CatalystCode/dirty
Browse files Browse the repository at this point in the history
Need dirty() to be virtual to override in special cases.
  • Loading branch information
vjeux committed Jan 5, 2016
2 parents 219bdae + 3d7bc48 commit f3b6fb3
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 f3b6fb3

Please sign in to comment.