Reviewed by Hyatt

        Fix for this bugs:

        <rdar://problem/3848343> REGRESSION (Mail, 166-168u): Typed text after space at end of line before block quote does not appear
        <rdar://problem/3848224> REGRESSION (Mail): space typed at end of line vanishes after typing next character

        * khtml/rendering/bidi.cpp:
        (khtml::RenderBlock::findNextLineBreak): When the khtmlLineBreak is in AFTER_WHITE_SPACE mode, as
        it is when we are editing, add in the space of the current character when calculating the width
        of committed plus uncommitted characters. If this value exceeds the width of the line, move up
        the line break object and call skipWhitespace to move past the end of the whitespace.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@7883 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2 files changed
tree: 275d2bf18ad956a73f6deabded3c123ad9dd7ab4
  1. JavaScriptCore/
  2. LayoutTests/
  3. WebCore/
  4. WebKit/