Changeset 150155 in webkit


Ignore:
Timestamp:
May 15, 2013 3:59:20 PM (11 years ago)
Author:
igor.o@sisa.samsung.com
Message:

Implement run-in remove child cases.
https://bugs.webkit.org/show_bug.cgi?id=86520

Move runin to original position when sibling element is destroyed.

Reviewed by David Hyatt.

Source/WebCore:

Tests: fast/runin/runin-remove-child-simple.html

fast/runin/runin-sibling-inline.html

  • rendering/RenderBlock.cpp:

(WebCore::RenderBlock::willBeDestroyed):
(WebCore::RenderBlock::moveRunInUnderSiblingBlockIfNeeded):

If moveRunInUnderSiblingBlockIfNeeded is called when the sibling run-in block
is being destroyed, it means that the run-in is moving to original position and
we do not need to do nothing.

LayoutTests:

  • fast/runin/runin-remove-child-simple-expected.txt: Added.
  • fast/runin/runin-remove-child-simple.html: Added.
  • fast/runin/runin-sibling-inline-expected.txt: Added.
  • fast/runin/runin-sibling-inline.html: Added.
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r150137 r150155  
     12013-05-15  Igor Oliveira  <igor.o@sisa.samsung.com>
     2
     3        Implement run-in remove child cases.
     4        https://bugs.webkit.org/show_bug.cgi?id=86520
     5
     6        Move runin to original position when sibling element is destroyed.
     7
     8        Reviewed by David Hyatt.
     9
     10        * fast/runin/runin-remove-child-simple-expected.txt: Added.
     11        * fast/runin/runin-remove-child-simple.html: Added.
     12        * fast/runin/runin-sibling-inline-expected.txt: Added.
     13        * fast/runin/runin-sibling-inline.html: Added.
     14
    1152013-05-15  Dongseong Hwang  <dongseong.hwang@intel.com>
    216
  • trunk/Source/WebCore/ChangeLog

    r150154 r150155  
     12013-05-15  Igor Oliveira  <igor.o@sisa.samsung.com>
     2
     3        Implement run-in remove child cases.
     4        https://bugs.webkit.org/show_bug.cgi?id=86520
     5
     6        Move runin to original position when sibling element is destroyed.
     7
     8        Reviewed by David Hyatt.
     9
     10        Tests: fast/runin/runin-remove-child-simple.html
     11               fast/runin/runin-sibling-inline.html
     12
     13        * rendering/RenderBlock.cpp:
     14        (WebCore::RenderBlock::willBeDestroyed):
     15        (WebCore::RenderBlock::moveRunInUnderSiblingBlockIfNeeded):
     16            If moveRunInUnderSiblingBlockIfNeeded is called when the sibling run-in block
     17            is being destroyed, it means that the run-in is moving to original position and
     18            we do not need to do nothing.
     19
    1202013-05-15  Anders Carlsson  <andersca@apple.com>
    221
  • trunk/Source/WebCore/rendering/RenderBlock.cpp

    r150140 r150155  
    257257    m_beingDestroyed = true;
    258258
     259    if (!documentBeingDestroyed()) {
     260        if (firstChild() && firstChild()->isRunIn())
     261            moveRunInToOriginalPosition(firstChild());
     262    }
     263
    259264    // Make sure to destroy anonymous children first while they are still connected to the rest of the tree, so that they will
    260265    // properly dirty line boxes that they are removed from. Effects that do :before/:after only on hover could crash otherwise.
     
    19831988        return;
    19841989
     1990    if (toRenderBlock(curr)->beingDestroyed())
     1991        return;
     1992
    19851993    // Per CSS3, "A run-in cannot run in to a block that already starts with a
    19861994    // run-in or that itself is a run-in".
Note: See TracChangeset for help on using the changeset viewer.