diff options
Diffstat (limited to 'WebCore/rendering/RenderSVGResourceMarker.cpp')
-rw-r--r-- | WebCore/rendering/RenderSVGResourceMarker.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/WebCore/rendering/RenderSVGResourceMarker.cpp b/WebCore/rendering/RenderSVGResourceMarker.cpp index fa00fa3..1d5663b 100644 --- a/WebCore/rendering/RenderSVGResourceMarker.cpp +++ b/WebCore/rendering/RenderSVGResourceMarker.cpp @@ -50,7 +50,7 @@ void RenderSVGResourceMarker::layout() { // Invalidate all resources if our layout changed. if (m_everHadLayout && selfNeedsLayout()) - invalidateClients(); + removeAllClientsFromCache(); // RenderSVGHiddenContainer overwrites layout(). We need the // layouting of RenderSVGContainer for calculating local @@ -58,16 +58,15 @@ void RenderSVGResourceMarker::layout() RenderSVGContainer::layout(); } -void RenderSVGResourceMarker::invalidateClients() +void RenderSVGResourceMarker::removeAllClientsFromCache(bool markForInvalidation) { - markAllClientsForInvalidation(LayoutAndBoundariesInvalidation); + markAllClientsForInvalidation(markForInvalidation ? LayoutAndBoundariesInvalidation : ParentOnlyInvalidation); } -void RenderSVGResourceMarker::invalidateClient(RenderObject* client) +void RenderSVGResourceMarker::removeClientFromCache(RenderObject* client, bool markForInvalidation) { ASSERT(client); - ASSERT(client->selfNeedsLayout()); - markClientForInvalidation(client, BoundariesInvalidation); + markClientForInvalidation(client, markForInvalidation ? BoundariesInvalidation : ParentOnlyInvalidation); } void RenderSVGResourceMarker::applyViewportClip(PaintInfo& paintInfo) |