[webkit-changes] [WebKit/WebKit] 20fb8c: Link drag preview can be hard to read
Tim Horton
noreply at github.com
Sat Nov 12 11:55:33 PST 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 20fb8c8624e81cef07300abc89f3685008254398
https://github.com/WebKit/WebKit/commit/20fb8c8624e81cef07300abc89f3685008254398
Author: Tim Horton <timothy_horton at apple.com>
Date: 2022-11-12 (Sat, 12 Nov 2022)
Changed paths:
M Source/WebCore/platform/ios/LocalCurrentTraitCollection.h
M Source/WebCore/platform/ios/LocalCurrentTraitCollection.mm
M Source/WebKit/UIProcess/ios/DragDropInteractionState.mm
Log Message:
-----------
Link drag preview can be hard to read
https://bugs.webkit.org/show_bug.cgi?id=247832
rdar://101837369
Reviewed by Aditya Keerthi.
* Source/WebCore/platform/ios/LocalCurrentTraitCollection.h:
* Source/WebCore/platform/ios/LocalCurrentTraitCollection.mm:
(WebCore::LocalCurrentTraitCollection::LocalCurrentTraitCollection):
Expose a version of LocalCurrentTraitCollection that takes a trait collection
and makes it current, while also applying `adjustedTraitCollection`'s adjustments.
* Source/WebKit/UIProcess/ios/DragDropInteractionState.mm:
(WebKit::DragDropInteractionState::updatePreviewsForActiveDragSources):
Adopt LocalCurrentTraitCollection here in order to make `adjustedTraitCollection`'s
adjustments take effect for the UIURLDragPreviewView's background color.
Canonical link: https://commits.webkit.org/256608@main
More information about the webkit-changes
mailing list