Changeset 230686 in webkit
- Timestamp:
- Apr 16, 2018 3:46:47 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r230681 r230686 1 2018-04-16 Megan Gardner <megan_gardner@apple.com> 2 3 Switch to UIWKTextInteractionAssistant for non-editable text 4 https://bugs.webkit.org/show_bug.cgi?id=182834 5 6 Reviewed by Beth Dakin. 7 8 Marking tests as flaky and to be fixed later. 9 10 * platform/ios-wk2/TestExpectations: 11 1 12 2018-04-16 Youenn Fablet <youenn@apple.com> 2 13 -
trunk/LayoutTests/platform/ios-wk2/TestExpectations
r230531 r230686 1348 1348 1349 1349 webkit.org/b/184245 http/tests/workers/service/service-worker-cache-api.https.html [ Pass Failure ] 1350 1351 #FIXME: Tests that fail when run after fast/events/ios/double-tap-zoom.html with UIWKTextInteractionAssistant turned on 1352 fast/flexbox/flexbox-fail-to-select-same-line.html [ ImageOnlyFailure Pass ] 1353 fast/text/international/hebrew-selection.html [ ImageOnlyFailure Pass ] 1354 imported/blink/editing/style/justify-left-crash.html [ ImageOnlyFailure Pass ] 1355 imported/blink/fast/css/user-select-none.html [ ImageOnlyFailure Pass ] -
trunk/Source/WebKit/ChangeLog
r230681 r230686 1 2018-04-16 Megan Gardner <megan_gardner@apple.com> 2 3 Switch to UIWKTextInteractionAssistant for non-editable text 4 https://bugs.webkit.org/show_bug.cgi?id=182834 5 6 Reviewed by Beth Dakin. 7 8 Switch to only using one assistant for text selection. 9 10 * UIProcess/ios/WKContentViewInteraction.mm: 11 (-[WKContentView useSelectionAssistantWithGranularity:]): 12 1 13 2018-04-16 Youenn Fablet <youenn@apple.com> 2 14 -
trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
r230652 r230686 1903 1903 - (void)useSelectionAssistantWithGranularity:(WKSelectionGranularity)selectionGranularity 1904 1904 { 1905 #if ENABLE(UNIFIED_TEXT_SELECTION) 1906 selectionGranularity = WKSelectionGranularityCharacter; 1907 #endif 1908 if (selectionGranularity == WKSelectionGranularityDynamic) { 1909 if (_textSelectionAssistant) { 1910 [_textSelectionAssistant deactivateSelection]; 1911 _textSelectionAssistant = nil; 1912 } 1913 if (!_webSelectionAssistant) 1914 _webSelectionAssistant = adoptNS([[UIWKSelectionAssistant alloc] initWithView:self]); 1915 } else if (selectionGranularity == WKSelectionGranularityCharacter) { 1916 if (_webSelectionAssistant) 1917 _webSelectionAssistant = nil; 1918 1919 if (!_textSelectionAssistant) 1920 _textSelectionAssistant = adoptNS([[UIWKTextInteractionAssistant alloc] initWithView:self]); 1921 else { 1922 // Reset the gesture recognizers in case editibility has changed. 1923 [_textSelectionAssistant setGestureRecognizers]; 1924 } 1925 1926 if (self.isFirstResponder && !self.suppressAssistantSelectionView) 1927 [_textSelectionAssistant activateSelection]; 1928 } 1905 _webSelectionAssistant = nil; 1906 1907 if (!_textSelectionAssistant) 1908 _textSelectionAssistant = adoptNS([[UIWKTextInteractionAssistant alloc] initWithView:self]); 1909 else { 1910 // Reset the gesture recognizers in case editibility has changed. 1911 [_textSelectionAssistant setGestureRecognizers]; 1912 } 1913 1914 if (self.isFirstResponder && !self.suppressAssistantSelectionView) 1915 [_textSelectionAssistant activateSelection]; 1929 1916 } 1930 1917
Note: See TracChangeset
for help on using the changeset viewer.