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