2009-04-20 Justin Garcia <justin.garcia@apple.com>

        Reviewed by Dan Bernstein.

        https://bugs.webkit.org/show_bug.cgi?id=25299
        Don't bound caret to root line box if it is still inside its containing block
        
        Can't yet write tests for behavior of non-standard caret widths.

        * rendering/RenderText.cpp:
        (WebCore::RenderText::localCaretRect):



git-svn-id: svn://svn.chromium.org/blink/trunk@42685 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 65ea5164
2009-04-20 Justin Garcia <justin.garcia@apple.com>
Reviewed by Dan Bernstein.
https://bugs.webkit.org/show_bug.cgi?id=25299
Don't bound caret to root line box if it is still inside its containing block
Can't yet write tests for behavior of non-standard caret widths.
* rendering/RenderText.cpp:
(WebCore::RenderText::localCaretRect):
2009-04-20 Steve Falkenburg <sfalken@apple.com> 2009-04-20 Steve Falkenburg <sfalken@apple.com>
Separate JavaScriptCore.dll from WebKit.dll. Separate JavaScriptCore.dll from WebKit.dll.
...@@ -407,7 +407,7 @@ IntRect RenderText::localCaretRect(InlineBox* inlineBox, int caretOffset, int* e ...@@ -407,7 +407,7 @@ IntRect RenderText::localCaretRect(InlineBox* inlineBox, int caretOffset, int* e
if (box->direction() == LTR) if (box->direction() == LTR)
left = min(left, rootLeft + availableWidth - caretWidthRightOfOffset); left = min(left, rootLeft + availableWidth - caretWidthRightOfOffset);
else else
left = max(left, rootLeft); left = max(left, cb->width());
} else { } else {
// If there is no wrapping, the caret can leave its containing block, but not its root line box. // If there is no wrapping, the caret can leave its containing block, but not its root line box.
if (cb->style()->direction() == LTR) { if (cb->style()->direction() == LTR) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment