Changeset 133346 in webkit


Ignore:
Timestamp:
Nov 2, 2012, 2:26:52 PM (12 years ago)
Author:
Lucas Forschler
Message:

Merged r124564. <rdar://problem/12536416>

Location:
branches/safari-536.28-branch
Files:
3 edited
2 copied

Legend:

Unmodified
Added
Removed
  • branches/safari-536.28-branch/LayoutTests/ChangeLog

    r133342 r133346  
     12012-11-02  Lucas Forschler  <lforschler@apple.com>
     2
     3        Merge r124564
     4
     5    2012-08-02  Abhishek Arya  <inferno@chromium.org>
     6
     7            Crash due to layer not removed from parent for anonymous block.
     8            https://bugs.webkit.org/show_bug.cgi?id=90800
     9
     10            Reviewed by Kent Tamura.
     11
     12            * fast/block/layer-not-removed-from-parent-crash-expected.txt: Added.
     13            * fast/block/layer-not-removed-from-parent-crash.html: Added.
     14
    1152012-11-02  Lucas Forschler  <lforschler@apple.com>
    216
     
    1074310757.
    1074410758.
     10759.
  • branches/safari-536.28-branch/Source/WebCore/ChangeLog

    r133342 r133346  
     12012-11-02  Lucas Forschler  <lforschler@apple.com>
     2
     3        Merge r124564
     4
     5    2012-08-02  Abhishek Arya  <inferno@chromium.org>
     6
     7            Crash due to layer not removed from parent for anonymous block.
     8            https://bugs.webkit.org/show_bug.cgi?id=90800
     9
     10            Reviewed by Kent Tamura.
     11
     12            Reverse the order of setStyle and removeChildNode calls. This ensures that setting the style
     13            properly removes its layer from the parent in RenderBoxModelObject::styleDidChange. Calling
     14            removeChildNode before calling setStyle is problematic since the parent layer never gets
     15            notified.
     16
     17            Test: fast/block/layer-not-removed-from-parent-crash.html
     18
     19            * rendering/RenderBlock.cpp:
     20            (WebCore::RenderBlock::removeChild):
     21
    1222012-11-02  Lucas Forschler  <lforschler@apple.com>
    223
     
    206027206048.
    206028206049.
     206050.
  • branches/safari-536.28-branch/Source/WebCore/rendering/RenderBlock.cpp

    r133342 r133346  
    11811181            ASSERT(!inlineChildrenBlock->continuation());
    11821182            RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay(style(), BLOCK);
     1183            inlineChildrenBlock->setStyle(newStyle);
    11831184            children()->removeChildNode(this, inlineChildrenBlock, inlineChildrenBlock->hasLayer());
    1184             inlineChildrenBlock->setStyle(newStyle);
    11851185           
    11861186            // Now just put the inlineChildrenBlock inside the blockChildrenBlock.
Note: See TracChangeset for help on using the changeset viewer.