Changeset 147871 in webkit


Ignore:
Timestamp:
Apr 7, 2013 11:37:39 AM (11 years ago)
Author:
robert@webkit.org
Message:

table element may get larger when its contents are recreated
https://bugs.webkit.org/show_bug.cgi?id=111342

Reviewed by Darin Adler.

Source/WebCore:

Remove anonymous table section wrappers when destroying their children.

Test: fast/table/anonymous-table-section-removed.html

  • rendering/RenderObject.cpp:

(WebCore::RenderObject::destroyAndCleanupAnonymousWrappers):

LayoutTests:

  • fast/table/anonymous-table-section-removed-expected.txt: Added.
  • fast/table/anonymous-table-section-removed.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r147861 r147871  
     12013-04-07  Robert Hogan  <robert@webkit.org>
     2
     3        table element may get larger when its contents are recreated
     4        https://bugs.webkit.org/show_bug.cgi?id=111342
     5
     6        Reviewed by Darin Adler.
     7
     8        * fast/table/anonymous-table-section-removed-expected.txt: Added.
     9        * fast/table/anonymous-table-section-removed.html: Added.
     10
    1112013-04-06  Timothy Hatcher  <timothy@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r147870 r147871  
     12013-04-07  Robert Hogan  <robert@webkit.org>
     2
     3        table element may get larger when its contents are recreated
     4        https://bugs.webkit.org/show_bug.cgi?id=111342
     5
     6        Reviewed by Darin Adler.
     7
     8        Remove anonymous table section wrappers when destroying their children.
     9
     10        Test: fast/table/anonymous-table-section-removed.html
     11
     12        * rendering/RenderObject.cpp:
     13        (WebCore::RenderObject::destroyAndCleanupAnonymousWrappers):
     14
    1152013-04-07  Patrick Gansterer  <paroga@webkit.org>
    216
  • trunk/Source/WebCore/rendering/RenderObject.cpp

    r147748 r147871  
    25562556    RenderObject* destroyRoot = this;
    25572557    for (RenderObject* destroyRootParent = destroyRoot->parent(); destroyRootParent && destroyRootParent->isAnonymous(); destroyRoot = destroyRootParent, destroyRootParent = destroyRootParent->parent()) {
    2558         // Currently we only remove anonymous cells' wrapper but we should remove all unneeded
     2558        // Currently we only remove anonymous cells' and table sections' wrappers but we should remove all unneeded
    25592559        // wrappers. See http://webkit.org/b/52123 as an example where this is needed.
    2560         if (!destroyRootParent->isTableCell())
     2560        if (!destroyRootParent->isTableCell() && !destroyRootParent->isTableSection())
    25612561            break;
    25622562
Note: See TracChangeset for help on using the changeset viewer.