Changeset 52838 in webkit


Ignore:
Timestamp:
Jan 5, 2010 4:07:56 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-01-05 James Robinson <jamesr@chromium.org>

Reviewed by David Hyatt.

Cleans up line box clearing when a RenderBlock loses its last child.
https://bugs.webkit.org/show_bug.cgi?id=33228

The 'fullLayout' flag in RenderBlock::layoutInlineChildren() is pretty vague, hopefully this will be easier for the next person to figure out.

No new tests.

  • rendering/RenderBlock.cpp: (WebCore::RenderBlock::removeChild):
  • rendering/RenderBlockLineLayout.cpp: (WebCore::RenderBlock::layoutInlineChildren):
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r52836 r52838  
     12010-01-05  James Robinson  <jamesr@chromium.org>
     2
     3        Reviewed by David Hyatt.
     4
     5        Cleans up line box clearing when a RenderBlock loses its last child.
     6        https://bugs.webkit.org/show_bug.cgi?id=33228
     7
     8        The 'fullLayout' flag in RenderBlock::layoutInlineChildren() is pretty vague, hopefully this will be easier for the next person to figure out.
     9
     10
     11        No new tests.
     12
     13        * rendering/RenderBlock.cpp:
     14        (WebCore::RenderBlock::removeChild):
     15        * rendering/RenderBlockLineLayout.cpp:
     16        (WebCore::RenderBlock::layoutInlineChildren):
     17
    1182010-01-05  Alexander Pavlov  <apavlov@chromium.org>
    219
  • trunk/WebCore/rendering/RenderBlock.cpp

    r52632 r52838  
    555555        anonBlock->destroy();
    556556    }
     557
     558    // If this was our last child be sure to clear out our line boxes.
     559    if (childrenInline() && !firstChild())
     560        lineBoxes()->deleteLineBoxes(renderArena());
    557561}
    558562
  • trunk/WebCore/rendering/RenderBlockLineLayout.cpp

    r52607 r52838  
    824824    // Figure out if we should clear out our line boxes.
    825825    // FIXME: Handle resize eventually!
    826     bool fullLayout = !firstLineBox() || !firstChild() || selfNeedsLayout() || relayoutChildren;
     826    bool fullLayout = !firstLineBox() || selfNeedsLayout() || relayoutChildren;
    827827    if (fullLayout)
    828828        lineBoxes()->deleteLineBoxes(renderArena());
Note: See TracChangeset for help on using the changeset viewer.