-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Writing Tools] Replace ENABLE_UNIFIED_TEXT_REPLACEMENT
with ENABLE_WRITING_TOOLS
and remove UTRAdditions.h
#29728
Conversation
_page->enableTextIndicatorStyleAfterElementWithID(elementID, *uuid); | ||
|
||
#if PLATFORM(IOS_FAMILY) | ||
[_contentView addTextIndicatorStyleForID:nsUUID.get() withStyleType:WKTextIndicatorStyleTypeInitial]; | ||
#elif PLATFORM(MAC) && ENABLE(UNIFIED_TEXT_REPLACEMENT_UI) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you just dropping UNIFIED_TEXT_REPLACEMENT_UI?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's okay because it's under ENABLE(WRITING_TOOLS)
?
@@ -299,12 +299,12 @@ | |||
|
|||
void PageClientImplCocoa::unifiedTextReplacementActiveWillChange() | |||
{ | |||
[m_webView willChangeValueForKey:unifiedTextReplacementActiveKey]; | |||
[m_webView willChangeValueForKey:@"writingToolsActive"]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be a static define somewhere? Like I assume unifiedTextReplacementActiveKey was?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
} | ||
|
||
void PageClientImplCocoa::unifiedTextReplacementActiveDidChange() | ||
{ | ||
[m_webView didChangeValueForKey:unifiedTextReplacementActiveKey]; | ||
[m_webView didChangeValueForKey:@"writingToolsActive"]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto.
EWS run on current version of this PR (hash d96769e)
|
β¦E_WRITING_TOOLS` and remove UTRAdditions.h https://bugs.webkit.org/show_bug.cgi?id=275376 rdar://129627552 Reviewed by Megan Gardner. * Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml: * Source/WTF/wtf/PlatformEnable.h: * Source/WTF/wtf/PlatformEnableCocoa.h: * Source/WebCore/dom/DocumentMarker.h: (WebCore::DocumentMarker::allMarkers): (WebCore::DocumentMarker::description const): * Source/WebCore/dom/DocumentMarkerController.cpp: (WebCore::shouldInsertAsSeparateMarker): (WebCore::DocumentMarkerController::addMarker): (WebCore::DocumentMarkerController::removeMarkers): (WebCore::DocumentMarkerController::unifiedTextReplacementAnimationTimerFired): * Source/WebCore/loader/EmptyClients.cpp: * Source/WebCore/page/ChromeClient.h: * Source/WebCore/page/ContextMenuClient.h: * Source/WebCore/page/ContextMenuController.cpp: (WebCore::ContextMenuController::contextMenuItemSelected): (WebCore::ContextMenuController::populate): * Source/WebCore/page/Page.cpp: * Source/WebCore/page/Page.h: * Source/WebCore/page/unified-text-replacement/UnifiedTextReplacementController.h: * Source/WebCore/page/unified-text-replacement/UnifiedTextReplacementController.mm: * Source/WebCore/page/unified-text-replacement/UnifiedTextReplacementTypes.h: * Source/WebCore/platform/LocalizedStrings.cpp: * Source/WebCore/platform/LocalizedStrings.h: * Source/WebCore/rendering/MarkedText.cpp: (WebCore::MarkedText::collectForDocumentMarkers): * Source/WebCore/rendering/MarkedText.h: * Source/WebCore/rendering/StyledMarkedText.cpp: (WebCore::resolveStyleForMarkedText): * Source/WebCore/rendering/TextBoxPainter.cpp: (WebCore::TextBoxPainter<TextBoxPath>::paintPlatformDocumentMarker): * Source/WebCore/testing/Internals.cpp: (WebCore::markerTypeFrom): * Source/WebCore/testing/Internals.h: * Source/WebCore/testing/Internals.idl: * Source/WebKit/Shared/TextIndicatorStyle.serialization.in: * Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in: * Source/WebKit/UIProcess/API/APIPageConfiguration.h: * Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView _initializeWithConfiguration:]): (-[WKWebView _enableTextIndicatorStylingAfterElementWithID:]): (-[WKWebView _enableTextIndicatorStylingForElementWithID:]): (-[WKWebView _disableTextIndicatorStylingWithUUID:]): (-[WKWebView _isUnifiedTextReplacementActive]): * Source/WebKit/UIProcess/API/Cocoa/WKWebViewConfiguration.mm: (-[WKWebViewConfiguration _setUnifiedTextReplacementBehavior:]): (-[WKWebViewConfiguration _unifiedTextReplacementBehavior]): * Source/WebKit/UIProcess/API/Cocoa/WKWebViewInternal.h: * Source/WebKit/UIProcess/API/mac/WKWebViewMac.mm: * Source/WebKit/UIProcess/Cocoa/PageClientImplCocoa.h: * Source/WebKit/UIProcess/Cocoa/PageClientImplCocoa.mm: (WebKit::PageClientImplCocoa::unifiedTextReplacementActiveWillChange): (WebKit::PageClientImplCocoa::unifiedTextReplacementActiveDidChange): * Source/WebKit/UIProcess/Cocoa/WebPageProxyCocoa.mm: * Source/WebKit/UIProcess/PageClient.h: * Source/WebKit/UIProcess/WKSTextStyleManager.h: * Source/WebKit/UIProcess/WebPageProxy.h: * Source/WebKit/UIProcess/WebPageProxy.messages.in: * Source/WebKit/UIProcess/WebPageProxyInternals.h: * Source/WebKit/UIProcess/ios/WKContentViewInteraction.h: * Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm: (-[WKContentView canPerformActionForWebView:withSender:]): (-[WKContentView _startWritingToolsForWebView:]): (-[WKContentView _updateTextInputTraits:]): (-[WKContentView _swapCharactersForWebView:]): Deleted. * Source/WebKit/UIProcess/ios/WKExtendedTextInputTraits.mm: (-[WKExtendedTextInputTraits restoreDefaultValues]): * Source/WebKit/UIProcess/mac/PageClientImplMac.h: * Source/WebKit/UIProcess/mac/PageClientImplMac.mm: * Source/WebKit/UIProcess/mac/WKTextIndicatorStyleManager.h: * Source/WebKit/UIProcess/mac/WKTextIndicatorStyleManager.mm: * Source/WebKit/UIProcess/mac/WebContextMenuProxyMac.mm: (WebKit::WebContextMenuProxyMac::getContextMenuFromItems): * Source/WebKit/UIProcess/mac/WebViewImpl.h: * Source/WebKit/UIProcess/mac/WebViewImpl.mm: (WebKit::WebViewImpl::selectionDidChange): (WebKit::WebViewImpl::hasContentRelativeChildViews const): (WebKit::WebViewImpl::suppressContentRelativeChildViews): (WebKit::WebViewImpl::restoreContentRelativeChildViews): * Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.cpp: * Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.h: * Source/WebKit/WebProcess/WebCoreSupport/WebContextMenuClient.h: * Source/WebKit/WebProcess/WebCoreSupport/mac/WebContextMenuClientMac.mm: * Source/WebKit/WebProcess/WebPage/Cocoa/TextIndicatorStyleController.mm: * Source/WebKit/WebProcess/WebPage/Cocoa/WebPageCocoa.mm: * Source/WebKit/WebProcess/WebPage/TextIndicatorStyleController.h: * Source/WebKit/WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::didChangeSelection): * Source/WebKit/WebProcess/WebPage/WebPage.h: * Source/WebKit/WebProcess/WebPage/WebPage.messages.in: * Source/WebKitLegacy/mac/WebCoreSupport/WebContextMenuClient.h: * Source/WebKitLegacy/mac/WebCoreSupport/WebContextMenuClient.mm: * Tools/TestWebKitAPI/Tests/WebCore/MarkedText.cpp: (WebCore::operator<<): Canonical link: https://commits.webkit.org/279936@main
d96769e
to
c6800d4
Compare
Committed 279936@main (c6800d4): https://commits.webkit.org/279936@main Reviewed commits have been landed. Closing PR #29728 and removing active labels. |
c6800d4
d96769e
π wincairoπ§ͺ wpe-wk2π§ͺ wincairo-testsπ§ͺ webkitperlπ§ͺ ios-wk2π§ͺ api-macπ§ͺ api-wpeπ§ͺ ios-wk2-wptπ§ͺ mac-wk1π§ͺ api-iosπ§ͺ mac-wk2π gtkπ§ͺ mac-AS-debug-wk2π§ͺ gtk-wk2π§ͺ mac-wk2-stressπ§ͺ api-gtkπ§ͺ jsc-armv7-tests