Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

[ASTextNode] use accessor for pointSizeScaleFactors #1929

Merged
merged 2 commits into from
Jul 15, 2016

Conversation

rcancro
Copy link
Contributor

@rcancro rcancro commented Jul 15, 2016

I have a subclass of ASTextNode that uses pointSizeScaleFactors. Currently I have to recompute the scale factors any time the font size changes. If _rendererAttributes used the property accesor for the scale factors I would only have to create them when asked. I hope this little change can make it in :)

I have a subclass of `ASTextNode` that uses `pointSizeScaleFactors`. Currently I have to recompute the scale factors any time the font size changes. If `_rendererAttributes` used the property accesor for the scale factors I would only have to create them when asked. I hope this little change can make it in :)
@ghost ghost added the CLA Signed label Jul 15, 2016
@maicki
Copy link
Contributor

maicki commented Jul 15, 2016

@rcancro LGTM. Can you add a comment why we use the property access explicitly in this case. Thanks!

@ghost ghost added the CLA Signed label Jul 15, 2016
@levi
Copy link
Contributor

levi commented Jul 15, 2016

👍 Game changer.

@maicki maicki merged commit 3b09cbb into facebookarchive:master Jul 15, 2016
Adlai-Holler pushed a commit that referenced this pull request Jul 15, 2016
[ASTextNode] use accessor for `pointSizeScaleFactors`
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants