Changeset 190796 in webkit
- Timestamp:
- Oct 9, 2015 7:22:04 AM (9 years ago)
- Location:
- branches/safari-601.1.46-branch/Source/WebKit2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-601.1.46-branch/Source/WebKit2/ChangeLog
r190778 r190796 1 2015-10-08 Matthew Hanson <matthew_hanson@apple.com> 2 3 Merge r190512. rdar://problem/22974818 4 5 2015-10-02 Enrica Casucci <enrica@apple.com> 6 7 Text selection is inaccurate in Wikipedia pages when starting navigation from wikipedia.org. 8 https://bugs.webkit.org/show_bug.cgi?id=149756 9 rdar://problem/22332409 10 11 Reviewed by Tim Horton. 12 13 When loading a new document into the same WebPage object, we need 14 to clear the assisted node, since there is no guarantee that the 15 node will be blurred. The bug is caused by the use of a stale 16 assisted node to constrain the point where the gesture occurs. 17 A fix for this problem was landed in http://trac.webkit.org/changeset/179885 18 where the cleanup was added when FrameLoaderClient::detach2 was called. 19 This method doesn't seem to be called any longer for the main frame, 20 so the correct solution is to add the cleanup to didCommitLoad in WebPage. 21 I've also added some checks to webSelectionsRects and selectedTextRange to avoid 22 the use of postLayoutData when the selection is none. 23 24 * UIProcess/ios/WKContentViewInteraction.mm: 25 (-[WKContentView webSelectionRects]): 26 (-[WKContentView selectedTextRange]): 27 * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: 28 (WebKit::WebFrameLoaderClient::detachedFromParent2): Removed call to resetAssistedNodeForFrame. 29 * WebProcess/WebPage/WebPage.cpp: 30 (WebKit::WebPage::didCommitLoad): Added call to resetAssistedNodeForFrame. 31 1 32 2015-10-08 Andy Estes <aestes@apple.com> 2 33 -
branches/safari-601.1.46-branch/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm
r190463 r190796 1034 1034 - (NSArray *)webSelectionRects 1035 1035 { 1036 if (_page->editorState().selectionIsNone) 1037 return nil; 1036 1038 const auto& selectionRects = _page->editorState().postLayoutData().selectionRects; 1037 1039 unsigned size = selectionRects.size(); … … 2306 2308 - (UITextRange *)selectedTextRange 2307 2309 { 2310 if (_page->editorState().selectionIsNone) 2311 return nil; 2308 2312 auto& postLayoutEditorStateData = _page->editorState().postLayoutData(); 2309 2313 FloatRect startRect = postLayoutEditorStateData.caretRectAtStart; -
branches/safari-601.1.46-branch/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp
r187065 r190796 141 141 return; 142 142 143 #if PLATFORM(IOS)144 webPage->resetAssistedNodeForFrame(m_frame);145 #endif146 143 RefPtr<API::Object> userData; 147 144 -
branches/safari-601.1.46-branch/Source/WebKit2/WebProcess/WebPage/WebPage.cpp
r190463 r190796 4619 4619 frame->setFirstLayerTreeTransactionIDAfterDidCommitLoad(downcast<RemoteLayerTreeDrawingArea>(*m_drawingArea).nextTransactionID()); 4620 4620 cancelPotentialTapInFrame(*frame); 4621 resetAssistedNodeForFrame(frame); 4621 4622 #endif 4622 4623
Note: See TracChangeset
for help on using the changeset viewer.