Changeset 115458 in webkit
- Timestamp:
- Apr 27, 2012 11:44:03 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r115453 r115458 1 2012-04-27 Julien Chaffraix <jchaffraix@webkit.org> 2 3 NULL-deref in RenderBox::clippedOverflowRectForRepaint 4 https://bugs.webkit.org/show_bug.cgi?id=84774 5 6 Reviewed by Tony Chang. 7 8 * fast/inline/crash-new-continuation-with-outline-expected.txt: Added. 9 * fast/inline/crash-new-continuation-with-outline.html: Added. 10 1 11 2012-04-27 Dirk Pranke <dpranke@chromium.org> 2 12 -
trunk/Source/WebCore/ChangeLog
r115454 r115458 1 2012-04-27 Julien Chaffraix <jchaffraix@webkit.org> 2 3 NULL-deref in RenderBox::clippedOverflowRectForRepaint 4 https://bugs.webkit.org/show_bug.cgi?id=84774 5 6 Reviewed by Tony Chang. 7 8 Test: fast/inline/crash-new-continuation-with-outline.html 9 10 The bug comes from trying to repaint the :after content as part of updateBeforeAfterContent. 11 The repainting logic would query the yet-to-be-inserted continuation(). Then we would crash in 12 RenderBox::clippedOverflowRectForRepaint as we didn't have an enclosingLayer() (which any 13 RenderObject in the tree will have). 14 15 The fix is to check in RenderInline::clippedOverflowRectForRepaint that our continuation() 16 is properly inserted in the tree. We could check that it isRooted() but it's an overkill here. 17 18 * rendering/RenderInline.cpp: 19 (WebCore::RenderInline::clippedOverflowRectForRepaint): 20 1 21 2012-04-27 Antti Koivisto <antti@apple.com> 2 22 -
trunk/Source/WebCore/rendering/RenderInline.cpp
r114936 r115458 1059 1059 } 1060 1060 1061 if (continuation() && !continuation()->isInline() ) {1061 if (continuation() && !continuation()->isInline() && continuation()->parent()) { 1062 1062 LayoutRect contRect = continuation()->rectWithOutlineForRepaint(repaintContainer, ow); 1063 1063 r.unite(contRect);
Note: See TracChangeset
for help on using the changeset viewer.