[webkit-changes] [WebKit/WebKit] 51cee3: [macOS] Add vector-based versions of search input ...
Aditya Keerthi
noreply at github.com
Tue Feb 25 10:57:06 PST 2025
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 51cee34780e2766a0f6c62260350bc3d32a20441
https://github.com/WebKit/WebKit/commit/51cee34780e2766a0f6c62260350bc3d32a20441
Author: Aditya Keerthi <akeerthi at apple.com>
Date: 2025-02-25 (Tue, 25 Feb 2025)
Changed paths:
M Source/WebCore/rendering/ios/RenderThemeIOS.mm
M Source/WebCore/rendering/mac/RenderThemeMac.mm
Log Message:
-----------
[macOS] Add vector-based versions of search input decorations
https://bugs.webkit.org/show_bug.cgi?id=288458
rdar://145542045
Reviewed by Abrar Rahman Protyasha.
Add hooks to draw vector-based decorations on macOS, and update Mac Catalyst
code to share the implementation.
* Source/WebCore/rendering/ios/RenderThemeIOS.mm:
(WebCore::RenderThemeIOS::adjustSearchFieldDecorationPartStyle const):
(WebCore::RenderThemeIOS::paintSearchFieldDecorationPart):
(WebCore::RenderThemeIOS::adjustSearchFieldResultsDecorationPartStyle const):
(WebCore::RenderThemeIOS::paintSearchFieldResultsDecorationPart):
(WebCore::RenderThemeIOS::adjustSearchFieldResultsButtonStyle const):
(WebCore::RenderThemeIOS::paintSearchFieldResultsButton):
* Source/WebCore/rendering/mac/RenderThemeMac.mm:
(WebCore::RenderThemeMac::canPaint const):
Add `StyleAppearance::SearchFieldDecoration` so that it can be painted using
`GraphicsContext`, and not `ControlPart`.
(WebCore::RenderThemeMac::adjustSearchFieldCancelButtonStyle const):
(WebCore::RenderThemeMac::adjustSearchFieldDecorationPartStyle const):
(WebCore::RenderThemeMac::adjustSearchFieldResultsDecorationPartStyle const):
(WebCore::RenderThemeMac::adjustSearchFieldResultsButtonStyle const):
Canonical link: https://commits.webkit.org/291040@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