Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
InteractionRegions: configure guard layers differently than occlusions
https://bugs.webkit.org/show_bug.cgi?id=256343 <rdar://108847192> Reviewed by Tim Horton. Make guards a proper InteractionRegion type, and configure the corresponding layers differently. * Source/WebCore/page/InteractionRegion.h: Switch the InteractionRegion::Type to an `uint8_t` and add the Guard case. Make the Type hash-able. * Source/WebCore/page/InteractionRegion.cpp: (WebCore::operator<<): Update the dump format to support guards. * Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in: Make the Type serialize-able. * Source/WebCore/rendering/EventRegion.cpp: (WebCore::EventRegionContext::uniteInteractionRegions): Generate guards with the proper Type. (WebCore::EventRegionContext::shrinkWrapInteractionRegions): Only shrink wrap Type::Interaction. * Source/WebKit/UIProcess/RemoteLayerTree/RemoteLayerTreeInteractionRegionLayers.mm: (configureLayerAsGuard): (WebKit::setInteractionRegion): (WebKit::setInteractionRegionOcclusion): (WebKit::setInteractionRegionGuard): (WebKit::updateLayersForInteractionRegions): (WebKit::isInteractionLayer): Deleted. Refactor `updateLayersForInteractionRegions` to more gracefully handle having 3 different InteractionRegion types. Call the new `configureLayerAsGuard` for guard layers. * Source/WebKit/UIProcess/API/Cocoa/WKWebViewTesting.mm: (dumpCALayer): Dump the raw `WKInteractionRegionType` for InteractionRegion layers. * LayoutTests/interaction-region/input-type-file-region-expected.txt: * LayoutTests/interaction-region/input-type-range-region-expected.txt: * LayoutTests/interaction-region/labels-expected.txt: * LayoutTests/interaction-region/layer-tree-expected.txt: * LayoutTests/interaction-region/tiny-regions-expected.txt: * LayoutTests/interaction-region/wrapped-inline-link-expected.txt: Test updates covering the change. * LayoutTests/interaction-region/paused-video-regions-expected.txt: Test update. Canonical link: https://commits.webkit.org/263730@main
- Loading branch information
1 parent
f937329
commit ee57472
Showing
13 changed files
with
117 additions
and
114 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
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
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
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
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
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
Oops, something went wrong.