Skip to content
  • adele's avatar
    LayoutTests: · 7fc3e830
    adele authored
            Reviewed by Dave Hyatt.
    
            - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=7216
              white-space: pre-wrap collapses leading whitespace following a newline
    
            * fast/text/whitespace/pre-wrap-spaces-after-newline-expected.checksum: Added.
            * fast/text/whitespace/pre-wrap-spaces-after-newline-expected.png: Added.
            * fast/text/whitespace/pre-wrap-spaces-after-newline-expected.txt: Added.
            * fast/text/whitespace/pre-wrap-spaces-after-newline.html: Added.
    
    WebCore:
    
            Test: fast/text/whitespace/pre-wrap-spaces-after-newline.html
    
            Reviewed by Dave Hyatt.
    
            - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7216
              white-space: pre-wrap collapses leading whitespace following a newline
    
            * rendering/bidi.cpp:
            (khtml::RenderBlock::bidiReorderLine): Use previousLineBrokeCleanly instead of
            resetBidiAtEnd now that the former is always correct.
            (khtml::RenderBlock::layoutInlineChildren): Use new skipTrailingNewline flag.
            (khtml::RenderBlock::findNextLineBreak): Set previousLineBrokeCleanly for line breaks
            caused by newlines as well. Added skipTrailingNewline flag.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12868 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    7fc3e830