Changeset 133346 in webkit
- Timestamp:
- Nov 2, 2012, 2:26:52 PM (12 years ago)
- Location:
- branches/safari-536.28-branch
- Files:
-
- 3 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-536.28-branch/LayoutTests/ChangeLog
r133342 r133346 1 2012-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 1 15 2012-11-02 Lucas Forschler <lforschler@apple.com> 2 16 … … 10743 10757 . 10744 10758 . 10759 . -
branches/safari-536.28-branch/Source/WebCore/ChangeLog
r133342 r133346 1 2012-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 1 22 2012-11-02 Lucas Forschler <lforschler@apple.com> 2 23 … … 206027 206048 . 206028 206049 . 206050 . -
branches/safari-536.28-branch/Source/WebCore/rendering/RenderBlock.cpp
r133342 r133346 1181 1181 ASSERT(!inlineChildrenBlock->continuation()); 1182 1182 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay(style(), BLOCK); 1183 inlineChildrenBlock->setStyle(newStyle); 1183 1184 children()->removeChildNode(this, inlineChildrenBlock, inlineChildrenBlock->hasLayer()); 1184 inlineChildrenBlock->setStyle(newStyle);1185 1185 1186 1186 // Now just put the inlineChildrenBlock inside the blockChildrenBlock.
Note:
See TracChangeset
for help on using the changeset viewer.