Reviewed by Maciej.
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 2 Apr 2006 00:04:31 +0000 (00:04 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 2 Apr 2006 00:04:31 +0000 (00:04 +0000)
commit236cc1ef1ba315584b8aed35e8a130f9af7e03e4
tree6089a2c163f3cf2a94508bdbcc3d4add8ac3093f
parentad8c6cbbec27bfc07a14d2f9e1eca49926305dc6
    Reviewed by Maciej.

        - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8089
          REGRESSION: Caret position is off in native text field with text-align:right

        - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8082
          REGRESSION: Empty RTL text fields place the caret on the left side

        Need a way to make a test for this. No obvious way at the moment.

        * rendering/RenderFlow.cpp: (WebCore::RenderFlow::caretRect):
        Consider border, padding, and the width of the caret properly in the
        calculation of the caret's X position.

        * rendering/RenderBox.cpp: (WebCore::RenderBox::caretRect):
        Fixed some similar issues and rewrote this function for clarity.
        However, I suspect this function was and remains broken and is almost
        never called.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13631 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/rendering/RenderBox.cpp
WebCore/rendering/RenderFlow.cpp