-
justin.garcia@apple.com authored
2009-04-17 Justin Garcia <justin.garcia@apple.com> Reviewed by Dan Bernstein. https://bugs.webkit.org/show_bug.cgi?id=25277 If there is no line wrapping, a caret can leave its containing block but it shouldn't leave its root line box Also added code to handle a caret wider than one pixel. Added fast/inline/25277.html and fast/inline/25277-2.html * rendering/RenderText.cpp: (WebCore::RenderText::localCaretRect): Distribute a caret's width to either side of the offset, so that a caret between two characters doesn't hang over one character more than the other. If there is no wrapping, the caret can leave its containing block, but not its root line box. LayoutTests: 2009-04-17 Justin Garcia <justin.garcia@apple.com> Reviewed by Dan Bernstein. https://bugs.webkit.org/show_bug.cgi?id=25277 If there is no line wrapping, a caret can leave its containing block but it shouldn't leave its root line box * fast/inline/25277-2.html: Added. * fast/inline/25277.html: Added. * platform/mac/fast/inline/25277-2-expected.checksum: Added. * platform/mac/fast/inline/25277-2-expected.png: Added. * platform/mac/fast/inline/25277-2-expected.txt: Added. * platform/mac/fast/inline/25277-expected.checksum: Added. * platform/mac/fast/inline/25277-expected.png: Added. * platform/mac/fast/inline/25277-expected.txt: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@42634 268f45cc-cd09-0410-ab3c-d52691b4dbfc
dc139c46