Changeset 40313 in webkit


Ignore:
Timestamp:
Jan 28, 2009 9:39:41 AM (15 years ago)
Author:
hyatt@apple.com
Message:

2009-01-28 David Hyatt <hyatt@apple.com>

Fix for

<rdar://problem/6531287> REGRESSION: CrashTracer: [USER] 12 crashes in Safari at com.apple.WebCore • WebCore::RenderBlock::removeFloatingObject + 59

My tightening up of markAllDescendantsWithFloatsForLayout exposed a buggy check in that code that could
lead to a bad cast.

  • rendering/RenderBlock.cpp: (WebCore::RenderBlock::markAllDescendantsWithFloatsForLayout):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r40312 r40313  
     12009-01-28  David Hyatt  <hyatt@apple.com>
     2
     3        Fix for
     4
     5        <rdar://problem/6531287> REGRESSION: CrashTracer: [USER] 12 crashes in Safari at com.apple.WebCore • WebCore::RenderBlock::removeFloatingObject + 59
     6
     7        My tightening up of markAllDescendantsWithFloatsForLayout exposed a buggy check in that code that could
     8        lead to a bad cast.
     9
     10        * rendering/RenderBlock.cpp:
     11        (WebCore::RenderBlock::markAllDescendantsWithFloatsForLayout):
     12
    1132009-01-27  David Hyatt  <hyatt@apple.com>
    214
  • trunk/WebCore/rendering/RenderBlock.cpp

    r40312 r40313  
    30563056    if (!childrenInline()) {
    30573057        for (RenderObject* child = firstChild(); child; child = child->nextSibling()) {
    3058             if (isBlockFlow() && !child->isFloatingOrPositioned() &&
     3058            if (child->isRenderBlock() && !child->isFloatingOrPositioned() &&
    30593059                ((floatToRemove ? child->containsFloat(floatToRemove) : child->containsFloats()) || child->shrinkToAvoidFloats()))
    30603060                static_cast<RenderBlock*>(child)->markAllDescendantsWithFloatsForLayout(floatToRemove, inLayout);
Note: See TracChangeset for help on using the changeset viewer.