• ojan@chromium.org's avatar
    2010-01-28 Ojan Vafai <ojan@chromium.org> · 16e0fd82
    ojan@chromium.org authored
            Reviewed by Darin Adler.
    
            Implement CSSOM Range.getClientRects for collapsed selections
            https://bugs.webkit.org/show_bug.cgi?id=34239
    
            Adds two cases to getClientRects test.
    
            * fast/dom/Range/getClientRects-expected.txt:
            * fast/dom/Range/getClientRects.html:
    2010-01-28  Ojan Vafai  <ojan@chromium.org>
    
            Reviewed by Darin Adler.
    
            Implement CSSOM Range.getClientRects for collapsed selections
            https://bugs.webkit.org/show_bug.cgi?id=34239
    
            When getting the quads for a range on a text node, allow returning
            zero width quads. This leaves the case of collapsed selections inside
            elements still not fixed, but no worse.
    
            * rendering/InlineTextBox.cpp:
            (WebCore::InlineTextBox::selectionRect):
            * rendering/RenderText.cpp:
            (WebCore::RenderText::absoluteQuadsForRange):
    
    git-svn-id: svn://svn.chromium.org/blink/trunk@54117 bbb929c8-8fbe-4397-9dbb-9b2b20218538
    16e0fd82
ChangeLog 1.07 KB