[webkit-changes] [WebKit/WebKit] 83bf37: Enhanced <input type=color>: support alpha picker ...

Anne van Kesteren noreply at github.com
Fri Oct 18 05:19:02 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 83bf370bd79073b86c2a8ff279d66d4692971ea3
      https://github.com/WebKit/WebKit/commit/83bf370bd79073b86c2a8ff279d66d4692971ea3
  Author: Anne van Kesteren <annevk at annevk.nl>
  Date:   2024-10-18 (Fri, 18 Oct 2024)

  Changed paths:
    M Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
    M Source/WebCore/html/HTMLInputElement.h
    A Source/WebKit/Shared/ColorControlSupportsAlpha.h
    M Source/WebKit/Shared/FocusedElementInformation.h
    M Source/WebKit/Shared/FocusedElementInformation.serialization.in
    M Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
    M Source/WebKit/UIProcess/ios/forms/WKFormColorControl.mm
    M Source/WebKit/WebKit.xcodeproj/project.pbxproj
    M Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm

  Log Message:
  -----------
  Enhanced <input type=color>: support alpha picker on iOS
https://bugs.webkit.org/show_bug.cgi?id=281663
rdar://138106125

Reviewed by Wenson Hsieh.

This adds an enum ColorControlSupportsAlpha to be shared across ports.

It ensures this boolean only enables the alpha slider in the color
picker when the relevant preference is set.

It also ensures that colors picked in the picker retain full fidelity
when the relevant preference is set.

* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml:
* Source/WebCore/html/HTMLInputElement.h:
* Source/WebKit/Shared/ColorControlSupportsAlpha.h: Added.
* Source/WebKit/Shared/FocusedElementInformation.h:
* Source/WebKit/Shared/FocusedElementInformation.serialization.in:
* Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView updateFocusedElementValueAsColor:]):
* Source/WebKit/UIProcess/ios/forms/WKFormColorControl.mm:
(-[WKColorPicker updateColorPickerState]):
* Source/WebKit/WebKit.xcodeproj/project.pbxproj:
* Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::WebPage::focusedElementInformation):

Canonical link: https://commits.webkit.org/285393@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list