Changeset 250779 in webkit
- Timestamp:
- Oct 7, 2019 11:37:37 AM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r250773 r250779 1 2019-10-07 Matt Mokary <mmokary@apple.com> 2 3 foundStringMatchIndex in FindController::findString gets reset on page scroll 4 https://bugs.webkit.org/show_bug.cgi?id=201773 5 <rdar://problem/55351892> 6 7 Reviewed by Tim Horton. 8 9 Decouple hiding of the find indicator from resetting match index, and only reset match index when there is not 10 an active match. 11 12 * WebProcess/WebPage/FindController.cpp: 13 (WebKit::FindController::updateFindUIAfterPageScroll): 14 (WebKit::FindController::hideFindUI): 15 (WebKit::FindController::hideFindIndicator): 16 (WebKit::FindController::resetMatchIndex): 17 * WebProcess/WebPage/FindController.h: 18 * WebProcess/WebPage/ios/FindControllerIOS.mm: 19 (WebKit::FindController::hideFindIndicator): 20 (WebKit::FindController::resetMatchIndex): 21 1 22 2019-10-07 youenn fablet <youenn@apple.com> 2 23 -
trunk/Source/WebKit/WebProcess/WebPage/FindController.cpp
r249921 r250779 147 147 148 148 hideFindIndicator(); 149 resetMatchIndex(); 149 150 didFailToFindString(); 150 151 … … 370 371 371 372 hideFindIndicator(); 373 resetMatchIndex(); 372 374 } 373 375 … … 396 398 m_webPage->send(Messages::WebPageProxy::ClearTextIndicator()); 397 399 m_isShowingFindIndicator = false; 400 didHideFindIndicator(); 401 } 402 403 void FindController::resetMatchIndex() 404 { 398 405 m_foundStringMatchIndex = -1; 399 didHideFindIndicator();400 406 } 401 407 -
trunk/Source/WebKit/WebProcess/WebPage/FindController.h
r248762 r250779 67 67 68 68 void hideFindIndicator(); 69 void resetMatchIndex(); 69 70 void showFindIndicatorInSelection(); 70 71 -
trunk/Source/WebKit/WebProcess/WebPage/ios/FindControllerIOS.mm
r248846 r250779 129 129 m_findIndicatorOverlay = nullptr; 130 130 m_isShowingFindIndicator = false; 131 didHideFindIndicator(); 132 } 133 134 void FindController::resetMatchIndex() 135 { 131 136 m_foundStringMatchIndex = -1; 132 didHideFindIndicator();133 137 } 134 138
Note: See TracChangeset
for help on using the changeset viewer.