-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add reset() method to CSSNode #140
Conversation
public CSSAlign alignItems; | ||
public CSSAlign alignSelf; | ||
public CSSPositionType positionType; | ||
public CSSWrap flexWrap; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why? I'd venture default values are there for a reason?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, just saw reset()
below, ignore.
@foghina What API break? |
|
@foghina Ah, I thought CSSLayout was package-private. Reverted this change to avoid the API break. |
This allows users of css-layout in Java to perform faster resets on CSSNode in cases when you want to recycle instances.
Updated the branch:
|
This allows users of css-layout in Java to perform faster resets on
CSSNode in cases when you want to recycle instances.
CSSLayout.resetResult() was renamed to simply reset() for consistency.