Changeset 190796 in webkit


Ignore:
Timestamp:
Oct 9, 2015 7:22:04 AM (9 years ago)
Author:
matthew_hanson@apple.com
Message:

Merge r190512. rdar://problem/22974818

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  
     12015-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
    1322015-10-08  Andy Estes  <aestes@apple.com>
    233
  • branches/safari-601.1.46-branch/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm

    r190463 r190796  
    10341034- (NSArray *)webSelectionRects
    10351035{
     1036    if (_page->editorState().selectionIsNone)
     1037        return nil;
    10361038    const auto& selectionRects = _page->editorState().postLayoutData().selectionRects;
    10371039    unsigned size = selectionRects.size();
     
    23062308- (UITextRange *)selectedTextRange
    23072309{
     2310    if (_page->editorState().selectionIsNone)
     2311        return nil;
    23082312    auto& postLayoutEditorStateData = _page->editorState().postLayoutData();
    23092313    FloatRect startRect = postLayoutEditorStateData.caretRectAtStart;
  • branches/safari-601.1.46-branch/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp

    r187065 r190796  
    141141        return;
    142142
    143 #if PLATFORM(IOS)
    144     webPage->resetAssistedNodeForFrame(m_frame);
    145 #endif
    146143    RefPtr<API::Object> userData;
    147144
  • branches/safari-601.1.46-branch/Source/WebKit2/WebProcess/WebPage/WebPage.cpp

    r190463 r190796  
    46194619    frame->setFirstLayerTreeTransactionIDAfterDidCommitLoad(downcast<RemoteLayerTreeDrawingArea>(*m_drawingArea).nextTransactionID());
    46204620    cancelPotentialTapInFrame(*frame);
     4621    resetAssistedNodeForFrame(frame);
    46214622#endif
    46224623
Note: See TracChangeset for help on using the changeset viewer.