-
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: http://svn.webkit.org/repository/webkit/trunk@54117 268f45cc-cd09-0410-ab3c-d52691b4dbfc
edde8768