Changeset 148468 in webkit


Ignore:
Timestamp:
Apr 15, 2013 2:25:35 PM (11 years ago)
Author:
igor.o@sisa.samsung.com
Message:

Call directly RenderBlock::deleteLineBoxTree
https://bugs.webkit.org/show_bug.cgi?id=102761

Reviewed by Darin Adler.

Instead of implementing RenderLineBoxList::deleteLineBoxTree logic inside
RenderBlock::determineStartPosition, we can reuse the code. The commentaries added
in the changeset #86628 are not valid anymore, nextRootBox is casting m_nextLineBox
and nextLineBox is returning m_nextLineBox.

  • rendering/RenderBlockLineLayout.cpp:

(WebCore::RenderBlock::determineStartPosition):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r148467 r148468  
     12013-04-15  Igor Oliveira  <igor.o@sisa.samsung.com>
     2
     3        Call directly RenderBlock::deleteLineBoxTree
     4        https://bugs.webkit.org/show_bug.cgi?id=102761
     5
     6        Reviewed by Darin Adler.
     7
     8        Instead of implementing RenderLineBoxList::deleteLineBoxTree logic inside
     9        RenderBlock::determineStartPosition, we can reuse the code. The commentaries added
     10        in the changeset #86628 are not valid anymore, nextRootBox is casting m_nextLineBox
     11        and nextLineBox is returning m_nextLineBox.
     12
     13        * rendering/RenderBlockLineLayout.cpp:
     14        (WebCore::RenderBlock::determineStartPosition):
     15
    1162013-04-15  Anders Carlsson  <andersca@apple.com>
    217
  • trunk/Source/WebCore/rendering/RenderBlockLineLayout.cpp

    r148453 r148468  
    21252125
    21262126    if (layoutState.isFullLayout()) {
    2127         // FIXME: This should just call deleteLineBoxTree, but that causes
    2128         // crashes for fast/repaint tests.
    2129         RenderArena* arena = renderArena();
    2130         curr = firstRootBox();
    2131         while (curr) {
    2132             // Note: This uses nextRootBox() insted of nextLineBox() like deleteLineBoxTree does.
    2133             RootInlineBox* next = curr->nextRootBox();
    2134             curr->deleteLine(arena);
    2135             curr = next;
    2136         }
     2127        m_lineBoxes.deleteLineBoxTree(renderArena());
     2128        curr = 0;
     2129
    21372130        ASSERT(!firstLineBox() && !lastLineBox());
    21382131    } else {
Note: See TracChangeset for help on using the changeset viewer.