Changeset 93531 in webkit


Ignore:
Timestamp:
Aug 22, 2011 1:05:51 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

FrameSelection::setNonDirectionalSelectionIfNeeded should not have a FrameSelection passed to it
https://bugs.webkit.org/show_bug.cgi?id=66636

Patch by Wyatt Carss <wcarss@chromium.org> on 2011-08-22
Reviewed by Darin Adler.

setNonDirectionalSelection was moved into FrameSelection in r93134 for
bug 60529, and still took a FrameSelection as an argument, which has been removed.

  • editing/FrameSelection.cpp:

(WebCore::FrameSelection::setNonDirectionalSelectionIfNeeded):

Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r93528 r93531  
     12011-08-22  Wyatt Carss  <wcarss@chromium.org>
     2
     3        FrameSelection::setNonDirectionalSelectionIfNeeded should not have a FrameSelection passed to it
     4        https://bugs.webkit.org/show_bug.cgi?id=66636
     5
     6        Reviewed by Darin Adler.
     7
     8        setNonDirectionalSelection was moved into FrameSelection in r93134 for
     9        bug 60529, and still took a FrameSelection as an argument, which has been removed.
     10
     11        * editing/FrameSelection.cpp:
     12        (WebCore::FrameSelection::setNonDirectionalSelectionIfNeeded):
     13
    1142011-08-22  Tony Chang  <tony@chromium.org>
    215
     
    262275        all elements should be available on DOMWindow.
    263276
    264          * bindings/generic/RuntimeEnabledFeatures.cpp:
     277        * bindings/generic/RuntimeEnabledFeatures.cpp:
    265278        (WebCore::RuntimeEnabledFeatures::htmlSourceElementEnabled):
    266279        * bindings/generic/RuntimeEnabledFeatures.h:
  • trunk/Source/WebCore/editing/FrameSelection.cpp

    r93221 r93531  
    164164}
    165165
    166 void FrameSelection::setNonDirectionalSelectionIfNeeded(FrameSelection* selection, const VisibleSelection& passedNewSelection, TextGranularity granularity)
    167 {
    168     ASSERT(selection);
     166void FrameSelection::setNonDirectionalSelectionIfNeeded(const VisibleSelection& passedNewSelection, TextGranularity granularity)
     167{
    169168    VisibleSelection newSelection = passedNewSelection;
    170169
     
    172171        newSelection.setIsDirectional(true);
    173172
    174     if (selection->selection() == newSelection || !selection->shouldChangeSelection(newSelection))
     173    if (m_selection == newSelection || !shouldChangeSelection(newSelection))
    175174        return;
    176175
  • trunk/Source/WebCore/editing/FrameSelection.h

    r93221 r93531  
    224224    bool shouldChangeSelection(const VisibleSelection&) const;
    225225    bool shouldDeleteSelection(const VisibleSelection&) const;
    226     void setNonDirectionalSelectionIfNeeded(FrameSelection*, const VisibleSelection&, TextGranularity);
     226    void setNonDirectionalSelectionIfNeeded(const VisibleSelection&, TextGranularity);
    227227    void setFocusedNodeIfNeeded();
    228228    void notifyRendererOfSelectionChange(EUserTriggered);
  • trunk/Source/WebCore/page/EventHandler.cpp

    r93358 r93531  
    288288    }
    289289
    290     m_frame->selection()->setNonDirectionalSelectionIfNeeded(m_frame->selection(), newSelection, granularity);
     290    m_frame->selection()->setNonDirectionalSelectionIfNeeded(newSelection, granularity);
    291291
    292292    return true;
     
    691691        newSelection.expandUsingGranularity(m_frame->selection()->granularity());
    692692
    693     m_frame->selection()->setNonDirectionalSelectionIfNeeded(m_frame->selection(), newSelection, m_frame->selection()->granularity());
     693    m_frame->selection()->setNonDirectionalSelectionIfNeeded(newSelection, m_frame->selection()->granularity());
    694694}
    695695#endif // ENABLE(DRAG_SUPPORT)
Note: See TracChangeset for help on using the changeset viewer.