Skip to content

Do proper snapshotting in TextOverflowPostLayoutSnapshot#58769

Merged
chromium-wpt-export-bot merged 1 commit intomasterfrom
chromium-export-cl-7698437
Mar 26, 2026
Merged

Do proper snapshotting in TextOverflowPostLayoutSnapshot#58769
chromium-wpt-export-bot merged 1 commit intomasterfrom
chromium-export-cl-7698437

Conversation

@chromium-wpt-export-bot
Copy link
Copy Markdown
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Mar 26, 2026

We never used the snapshotted value in TextOverflowPostLayoutSnapshot
during layout, which meant we could be out of sync for the stored value
and the previous used value for forced layouts. That again lead to
invalidation issues.

Instead use the snapshotted value during layout. Also added some
documentation to the class.

Bug: 495842549
Change-Id: I6589385f01294811e484a53d5771254f48c9f46a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7698437
Reviewed-by: Koji Ishii <kojii@chromium.org>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1605344}

We never used the snapshotted value in TextOverflowPostLayoutSnapshot
during layout, which meant we could be out of sync for the stored value
and the previous used value for forced layouts. That again lead to
invalidation issues.

Instead use the snapshotted value during layout. Also added some
documentation to the class.

Bug: 495842549
Change-Id: I6589385f01294811e484a53d5771254f48c9f46a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7698437
Reviewed-by: Koji Ishii <kojii@chromium.org>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1605344}
Copy link
Copy Markdown
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot merged commit 91659f4 into master Mar 26, 2026
27 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-7698437 branch March 26, 2026 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants