Add ability to get ShadowNodeFamily's ancestors as shared pointers
Summary: Changelog: [Internal] - Add ability to get ShadowNodeFamily's ancestors as shared pointers
While working on the hover tracking logic I've found the need to recieve a node's ancestor list to contain shared pointers to ShadowNodes instead of references to them. This isn't necessarily to get ownership of the ancestors but instead will allow me to store those shadow node lists as weak pointers so I have a mechanism to know when they've been deallocated.
RFC: This effectively just adds a copy of the existing getAncestors method with minor changes. This creates some code duplication but I'm unsure of a more elegant way to do this so I'm open to ideas.
Differential Revision: D48170045
This pull request was exported from Phabricator. Differential Revision: D48170045
| Platform | Engine | Arch | Size (bytes) | Diff |
|---|---|---|---|---|
| android | hermes | arm64-v8a | 8,956,135 | +7,226 |
| android | hermes | armeabi-v7a | n/a | -- |
| android | hermes | x86 | n/a | -- |
| android | hermes | x86_64 | n/a | -- |
| android | jsc | arm64-v8a | 9,549,485 | +7,236 |
| android | jsc | armeabi-v7a | n/a | -- |
| android | jsc | x86 | n/a | -- |
| android | jsc | x86_64 | n/a | -- |
Base commit: 910a9567f42f65971c480eac7c8eb65a56c14361 Branch: main
This pull request was exported from Phabricator. Differential Revision: D48170045
This PR is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This PR was closed because it has been stalled for 7 days with no activity.