-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixup contentLength invalidation logic (#38733)
Summary: Pull Request resolved: #38733 I was working under the assumption that Fabric fired layout events bottom up, but it actually fires them top-down, in constrast to Paper. Previous invalidation logic wasn't quite correct when fired bottom-up. This corrects the logic by: 1. Deriving direction based on initial event ordering 2. Use last cached contentLength if we are on Fabric (top-down) 3. Use future contentLength if we are on Paper (bottom-up) Changelog: [General][Fixed] - Fixup contentLength invalidation logic Reviewed By: rozele Differential Revision: D47978638 fbshipit-source-id: 3446d08aa34397b4e6bd9924dad0eba36a12a115
- Loading branch information
1 parent
5596f1c
commit ace0a80
Showing
1 changed file
with
42 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters