Commit 8607a8de authored by akling@apple.com's avatar akling@apple.com

RenderSVGResource shouldn't trigger relayout during render tree teardown.

<https://webkit.org/b/120689>
<rdar://problem/14908967>

Reviewed by Antti Koivisto.

The new assertion in FrameView::scheduleRelayoutOfSubtree() caught a fish!
We were doing some unnecessary relayout scheduling while tearing down SVG
resource renderers.

* rendering/svg/RenderSVGResource.cpp:
(WebCore::RenderSVGResource::markForLayoutAndParentResourceInvalidation):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155055 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent e9a7503b
2013-09-04 Andreas Kling <akling@apple.com>
RenderSVGResource shouldn't trigger relayout during render tree teardown.
<https://webkit.org/b/120689>
<rdar://problem/14908967>
Reviewed by Antti Koivisto.
The new assertion in FrameView::scheduleRelayoutOfSubtree() caught a fish!
We were doing some unnecessary relayout scheduling while tearing down SVG
resource renderers.
* rendering/svg/RenderSVGResource.cpp:
(WebCore::RenderSVGResource::markForLayoutAndParentResourceInvalidation):
2013-09-04 Daniel Bates <dabates@apple.com>
[iOS] Fix the build following <http://trac.webkit.org/changeset/154903>
......@@ -194,7 +194,7 @@ void RenderSVGResource::markForLayoutAndParentResourceInvalidation(RenderObject*
ASSERT(object);
ASSERT(object->node());
if (needsLayout)
if (needsLayout && !object->documentBeingDestroyed())
object->setNeedsLayout(true);
removeFromCacheAndInvalidateDependencies(object, needsLayout);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment