Commit 6f84323
Hotfix VirtualViewContainerStateExperimental delete (facebook#54236)
Summary:
Pull Request resolved: facebook#54236
Changelog[Internal] -
Fix faulty changes made to Interval Tree in previous diff.
The issue was in the right-right rotation case of the internal Interval Tree implementation:
```
// Right heavy
if (bf < -1) {
if (balanceFactor(node.right) > 0) {
node.right =
rotateRight(...)
```
This diff also includes a minor update to logic in IntervalTree's `delete` operation. There was previously a missing `balance` operation.
Reviewed By: lunaleaps
Differential Revision: D85263661
fbshipit-source-id: 8636984161a8668d74973b6aebad9842d4d7f34f1 parent 9f7a3bb commit 6f84323
File tree
1 file changed
+24
-18
lines changed- packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/scroll
1 file changed
+24
-18
lines changedLines changed: 24 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
| 278 | + | |
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
| 327 | + | |
327 | 328 | | |
328 | 329 | | |
329 | 330 | | |
| |||
333 | 334 | | |
334 | 335 | | |
335 | 336 | | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
352 | 354 | | |
353 | 355 | | |
354 | 356 | | |
355 | | - | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
356 | 362 | | |
357 | 363 | | |
358 | 364 | | |
| |||
0 commit comments