Changeset 52607 in webkit


Ignore:
Timestamp:
Dec 28, 2009 10:25:16 PM (14 years ago)
Author:
eric@webkit.org
Message:

2009-12-28 Mike Moretti <webkit9@mordent.com>

Reviewed by Darin Adler.

Fix bug 28245 - problem with inserting a span into a long text block causing a crash because of a null string

Test: fast/dom/insert-span-into-long-text-bug-28245.html

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

2009-12-28 Mike Moretti <webkit9@mordent.com>

Reviewed by Darin Adler.

Fix bug 28245 - problem with inserting a span into a long text block causing a crash because of a null string

  • fast/dom/insert-span-into-long-text-bug-28245-expected.txt: Added.
  • fast/dom/insert-span-into-long-text-bug-28245.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r52606 r52607  
     12009-12-28  Mike Moretti  <webkit9@mordent.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        Fix bug 28245 - problem with inserting a span into a long text block causing a crash because of a null string
     6
     7        * fast/dom/insert-span-into-long-text-bug-28245-expected.txt: Added.
     8        * fast/dom/insert-span-into-long-text-bug-28245.html: Added.
     9
    1102009-12-28  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
    211
  • trunk/WebCore/ChangeLog

    r52605 r52607  
     12009-12-28  Mike Moretti  <webkit9@mordent.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        Fix bug 28245 - problem with inserting a span into a long text block causing a crash because of a null string
     6
     7        Test: fast/dom/insert-span-into-long-text-bug-28245.html
     8
     9        * rendering/RenderBlockLineLayout.cpp:
     10        (WebCore::RenderBlock::findNextLineBreak):
     11
    1122009-12-28  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
    213
  • trunk/WebCore/rendering/RenderBlockLineLayout.cpp

    r51527 r52607  
    19281928                        }
    19291929                        if (lineWasTooWide || w + tmpW > width) {
    1930                             if (lBreak.obj && shouldPreserveNewline(lBreak.obj) && lBreak.obj->isText() && !toRenderText(lBreak.obj)->isWordBreak() && toRenderText(lBreak.obj)->characters()[lBreak.pos] == '\n') {
     1930                            if (lBreak.obj && shouldPreserveNewline(lBreak.obj) && lBreak.obj->isText() && toRenderText(lBreak.obj)->textLength() && !toRenderText(lBreak.obj)->isWordBreak() && toRenderText(lBreak.obj)->characters()[lBreak.pos] == '\n') {
    19311931                                if (!stoppedIgnoringSpaces && pos > 0) {
    19321932                                    // We need to stop right before the newline and then start up again.
Note: See TracChangeset for help on using the changeset viewer.