-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UnifiedPDF] Form control repaints are incorrect when PDF content cha…
…nges across multiple tiles https://bugs.webkit.org/show_bug.cgi?id=274237 rdar://128072857 Reviewed by Simon Fraser. When PDF content changes across multiple tiles, for example if we have multiple checkboxes toggled and we reset them with the reset action, we enqueue multiple tile paints that chase each other, ultimately for them all to be dropped on the floor because they are either not the most recent tile render or because the most recent tile renders contents version identifier does not match that of the current render info. The former reason is valid while the latter is not. In fact, local experimentation shows that our checking against the contents version identifiers is redundant because the render identifier state always reflects what we learn from the contents version check. In this PR, we remove the notion of contents version from the async renderer, since this information is redudnant and our aggressive checking of this information incorrectly drops valid tile renders on the floor. * Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/AsyncPDFRenderer.h: * Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/AsyncPDFRenderer.mm: (WebKit::AsyncPDFRenderer::AsyncPDFRenderer): (WebKit::AsyncPDFRenderer::renderInfoIsValidForTile const): (WebKit::AsyncPDFRenderer::willRepaintTile): (WebKit::AsyncPDFRenderer::renderInfoForTile const): (WebKit::AsyncPDFRenderer::didCompleteTileRender): (WebKit::AsyncPDFRenderer::pdfContentChangedInRect): Canonical link: https://commits.webkit.org/278878@main
- Loading branch information
Showing
2 changed files
with
8 additions
and
27 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
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