Changeset 31227 in webkit


Ignore:
Timestamp:
Mar 21, 2008 11:57:28 PM (16 years ago)
Author:
mitz@apple.com
Message:

WebCore:

Reviewed by Oliver Hunt.

Test: fast/css-generated-content/empty-content-with-float-crash.html

  • rendering/bidi.cpp: (WebCore::RenderBlock::layoutInlineChildren): Added a null check for the case where the block contains no in-flow elements but still lays out as a line flow, which can happen as a result of empty generated content.

LayoutTests:

Reviewed by Oliver Hunt.

  • fast/css-generated-content/empty-content-with-float-crash-expected.txt: Added.
  • fast/css-generated-content/empty-content-with-float-crash.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r31225 r31227  
     12008-03-21  Dan Bernstein  <mitz@apple.com>
     2
     3        Reviewed by Oliver Hunt.
     4
     5        - test for http://bugs.webkit.org/show_bug.cgi?id=17988
     6          REGRESSION (r31114-31132): Crash in InlineBox::isDirty() opening chowhound.com
     7
     8        * fast/css-generated-content/empty-content-with-float-crash-expected.txt: Added.
     9        * fast/css-generated-content/empty-content-with-float-crash.html: Added.
     10
    1112008-03-21  Oliver Hunt  <oliver@apple.com>
    212
  • trunk/WebCore/ChangeLog

    r31224 r31227  
     12008-03-21  Dan Bernstein  <mitz@apple.com>
     2
     3        Reviewed by Oliver Hunt.
     4
     5        - fix http://bugs.webkit.org/show_bug.cgi?id=17988
     6          REGRESSION (r31114-31132): Crash in InlineBox::isDirty() opening chowhound.com
     7
     8        Test: fast/css-generated-content/empty-content-with-float-crash.html
     9
     10        * rendering/bidi.cpp:
     11        (WebCore::RenderBlock::layoutInlineChildren): Added a null check for
     12        the case where the block contains no in-flow elements but still lays
     13        out as a line flow, which can happen as a result of empty generated
     14        content.
     15
    1162008-03-21  Sam Weinig  <sam@webkit.org>
    217
  • trunk/WebCore/rendering/bidi.cpp

    r31213 r31227  
    940940            }
    941941
    942             if (m_floatingObjects) {
     942            if (m_floatingObjects && lastRootBox()) {
    943943                if (lastFloat) {
    944944                    for (FloatingObject* f = m_floatingObjects->last(); f != lastFloat; f = m_floatingObjects->prev()) {
Note: See TracChangeset for help on using the changeset viewer.