Created attachment 206197 [details] Test Case Range.getClientRects() is not working correctly for partially contained vertically styled text nodes. (See attached test case).
Created attachment 206397 [details] Potential fix from Mac Murrett
Comment on attachment 206397 [details] Potential fix from Mac Murrett View in context: https://bugs.webkit.org/attachment.cgi?id=206397&action=review > Source/WebCore/rendering/RenderText.cpp:338 > r.setHeight(box->logicalHeight()); > r.setY(box->y()); > } else { > - r.setWidth(box->logicalWidth()); > + r.setWidth(box->logicalHeight()); > r.setX(box->x()); Shouldn't this just be using box->width() and box->height()? Seems silly to call logical when you seem to want physical?
(In reply to comment #2) > (From update of attachment 206397 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=206397&action=review > > > Source/WebCore/rendering/RenderText.cpp:338 > > r.setHeight(box->logicalHeight()); > > r.setY(box->y()); > > } else { > > - r.setWidth(box->logicalWidth()); > > + r.setWidth(box->logicalHeight()); > > r.setX(box->x()); > > Shouldn't this just be using box->width() and box->height()? Seems silly to call logical when you seem to want physical? Agreed, I'll try that out.
Created attachment 206404 [details] Patch
Comment on attachment 206404 [details] Patch r=me
Committed r152554: <http://trac.webkit.org/changeset/152554>
<rdar://problem/14305675>