Changeset 30454 in webkit


Ignore:
Timestamp:
Feb 20, 2008 9:00:10 PM (16 years ago)
Author:
mitz@apple.com
Message:

WebCore:

Reviewed by Dave Hyatt.

Test: fast/text/wbr-in-pre-crash.html

  • rendering/bidi.cpp: (WebCore::RenderBlock::findNextLineBreak):

LayoutTests:

Reviewed by Dave Hyatt.

  • fast/text/wbr-in-pre-crash.html: Added.
  • platform/mac-leopard/fast/text/wbr-in-pre-crash-expected.checksum: Added.
  • platform/mac-leopard/fast/text/wbr-in-pre-crash-expected.png: Added.
  • platform/mac/fast/text/wbr-in-pre-crash-expected.txt: Added.
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r30453 r30454  
     12008-02-20  Dan Bernstein  <mitz@apple.com>
     2
     3        Reviewed by Dave Hyatt.
     4
     5        - test for http://bugs.webkit.org/show_bug.cgi?id=17464
     6          REGRESSION: Crash in RenderBlock::findNextLineBreak reading r30444 commit email in GMail
     7
     8        * fast/text/wbr-in-pre-crash.html: Added.
     9        * platform/mac-leopard/fast/text/wbr-in-pre-crash-expected.checksum: Added.
     10        * platform/mac-leopard/fast/text/wbr-in-pre-crash-expected.png: Added.
     11        * platform/mac/fast/text/wbr-in-pre-crash-expected.txt: Added.
     12
    1132008-02-20  Michael Knaup  <michael.knaup@mac.com>
    214
  • trunk/WebCore/ChangeLog

    r30452 r30454  
     12008-02-20  Dan Bernstein  <mitz@apple.com>
     2
     3        Reviewed by Dave Hyatt.
     4
     5        - fix http://bugs.webkit.org/show_bug.cgi?id=17464
     6          REGRESSION: Crash in RenderBlock::findNextLineBreak reading r30444 commit email in GMail
     7
     8        Test: fast/text/wbr-in-pre-crash.html
     9
     10        * rendering/bidi.cpp:
     11        (WebCore::RenderBlock::findNextLineBreak):
     12
    1132008-02-20  Oliver Hunt  <oliver@apple.com>
    214
  • trunk/WebCore/rendering/bidi.cpp

    r30412 r30454  
    17011701                        }
    17021702                        if (lineWasTooWide || w + tmpW > width) {
    1703                             if (lBreak.obj && shouldPreserveNewline(lBreak.obj) && lBreak.obj->isText() && static_cast<RenderText*>(lBreak.obj)->characters()[lBreak.pos] == '\n') {
     1703                            if (lBreak.obj && shouldPreserveNewline(lBreak.obj) && lBreak.obj->isText() && !static_cast<RenderText*>(lBreak.obj)->isWordBreak() && static_cast<RenderText*>(lBreak.obj)->characters()[lBreak.pos] == '\n') {
    17041704                                if (!stoppedIgnoringSpaces && pos > 0) {
    17051705                                    // We need to stop right before the newline and then start up again.
Note: See TracChangeset for help on using the changeset viewer.