Changeset 236522 in webkit


Ignore:
Timestamp:
Sep 26, 2018 1:33:00 PM (6 years ago)
Author:
rniwa@webkit.org
Message:

Selection should work across shadow boundary when initiated by a mouse drag
https://bugs.webkit.org/show_bug.cgi?id=151380
<rdar://problem/24363872>

Revert the change that I said I would from r236519.

  • editing/VisibleSelection.cpp:

(WebCore::VisibleSelection::adjustSelectionToAvoidCrossingShadowBoundaries):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r236521 r236522  
     12018-09-26  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        Selection should work across shadow boundary when initiated by a mouse drag
     4        https://bugs.webkit.org/show_bug.cgi?id=151380
     5        <rdar://problem/24363872>
     6
     7        Revert the change that I said I would from r236519.
     8
     9        * editing/VisibleSelection.cpp:
     10        (WebCore::VisibleSelection::adjustSelectionToAvoidCrossingShadowBoundaries):
     11
    1122018-09-26  Commit Queue  <commit-queue@webkit.org>
    213
  • trunk/Source/WebCore/editing/VisibleSelection.cpp

    r236519 r236522  
    539539
    540540    if (m_baseIsFirst) {
    541         m_extent = adjustPositionForEnd(m_end, startNode.ptr());
     541        m_extent = adjustPositionForEnd(m_end, m_start.containerNode());
    542542        m_end = m_extent;
    543543    } else {
    544         m_extent = adjustPositionForStart(m_start, endNode.ptr());
     544        m_extent = adjustPositionForStart(m_start, m_end.containerNode());
    545545        m_start = m_extent;
    546546    }
Note: See TracChangeset for help on using the changeset viewer.