[Webkit-unassigned] [Bug 56324] EventHandler calls shouldChangeSelection needlessly
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Mar 14 17:54:01 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=56324
--- Comment #3 from Ryosuke Niwa <rniwa at webkit.org> 2011-03-14 17:54:02 PST ---
(In reply to comment #2)
> (From update of attachment 85746 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=85746&action=review
>
> > Source/WebCore/page/EventHandler.cpp:662
> > - if (m_frame->selection()->shouldChangeSelection(newSelection)) {
> > - m_frame->selection()->setIsDirectional(false);
> > - m_frame->selection()->setSelection(newSelection, m_frame->selection()->granularity(), MakeNonDirectionalSelection);
> > - }
> > + setNonDirectionalSelectionIfNeeded(m_frame->selection(), newSelection, m_frame->selection()->granularity());
>
> What does the setIsDirectional(false) work in the new code?
The first thing SelectionController::setSelection does is to call setIsDirectional(directionalityPolicy == MakeDirectionalSelection) so call to setIsDirectional here was completely redundant.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list