[Webkit-unassigned] [Bug 25451] Selection base/extent aren't honored on the first horizontal extension

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 28 11:27:52 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=25451





------- Comment #1 from justin.garcia at apple.com  2009-04-28 11:27 PDT -------
if (!m_lastChangeWasHorizontalExtension) {
    m_lastChangeWasHorizontalExtension = true;
    Position start = m_sel.start();
    Position end = m_sel.end();
    switch (direction) {
        // FIXME: right for bidi?
        case RIGHT:
        case FORWARD:
            m_sel.setBase(start);
            m_sel.setExtent(end);
            break;
        case LEFT:
        case BACKWARD:
            m_sel.setBase(end);
            m_sel.setExtent(start);
            break;
    }
}


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list