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

Reviewed by Sam Weinig.

Make selectionRect() on InlineTextBox give the right value for a vertical line.  Selection is still too broken
to test anything though.

* rendering/InlineTextBox.cpp:
(WebCore::InlineTextBox::selectionRect):



git-svn-id: svn://svn.chromium.org/blink/trunk@70456 bbb929c8-8fbe-4397-9dbb-9b2b20218538
bool InlineTextBox::isSelected(int startPos, int endPos) const
{
    int sPos = max(startPos - m_start, 0);
    int ePos = min(endPos - m_start, (int)m_len);
    return (sPos < ePos);
}

bool InlineTextBox::isSelected(int startPos, int endPos) const
{
    int sPos = max(startPos - m_start, 0);
    int ePos = min(endPos - m_start, (int)m_len);
    return (sPos < ePos);
}
