forked from WebKit/WebKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UnifiedPDF] Determine what kind of repaint a given annotation change…
… requires https://bugs.webkit.org/show_bug.cgi?id=269623 rdar://123120061 Reviewed by Sammy Gill. Some annotation changes, like the blue textfield hover, only require us to repaint the hover overlay. Others, like checkboxes and radio buttons, require a regeneration of the cached tiles. To distinguish between these, change `ShouldRepaint` into `RepaintRequirement` which is used in an OptionSet<>. Pass this to `setNeedsRepaintInDocumentRect()` and have it invalidate the tiles only when necessary. Implement `repaintRequirementsForAnnotation()` so we know what kinds of repaint a given annotation requires. * Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/UnifiedPDFPlugin.h: * Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/UnifiedPDFPlugin.mm: (WebKit::UnifiedPDFPlugin::setNeedsRepaintInDocumentRect): (WebKit::UnifiedPDFPlugin::handleMouseEvent): (WebKit::UnifiedPDFPlugin::repaintRequirementsForAnnotation): (WebKit::UnifiedPDFPlugin::startTrackingAnnotation): (WebKit::UnifiedPDFPlugin::finishTrackingAnnotation): (WebKit::UnifiedPDFPlugin::setActiveAnnotation): (WebKit::AnnotationTrackingState::startAnnotationTracking): (WebKit::AnnotationTrackingState::finishAnnotationTracking): (WebKit::UnifiedPDFPlugin::setPDFChangedInDocumentRect): Deleted. (WebKit::AnnotationTrackingState::handleMouseDraggedOffTrackedAnnotation): Deleted. It was just a one-liner. Canonical link: https://commits.webkit.org/274911@main
- Loading branch information
Showing
2 changed files
with
71 additions
and
52 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