[FragmentItem] Fix CalculateSizeBasedLayoutCacheStatus not to upgrade
This patch ensures that |CalculateSizeBasedLayoutCacheStatus| can downgrade |kHit| to |kNeedsSimplifiedLayout|, but not to upgrade |kCanReuseLines|. Upgrading can run simplified layout even when previously we determined changes in inline content cannot run the simplified layout. This fixes |PrintPreviewPagesSettingsTest.InvalidPageRanges|. Bug: 982194 Change-Id: Ie9fe75a64f7c24cc0bedc8647b38a8c33d8529bf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2237433Reviewed-by:Ian Kilpatrick <ikilpatrick@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#776809}
Showing
Please register or sign in to comment