| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 3 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 4 * Copyright 2014 The Chromium Authors. All rights reserved. | 4 * Copyright 2014 The Chromium Authors. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 const RenderSVGResourceType RenderSVGResourcePattern::s_resourceType = PatternRe
sourceType; | 41 const RenderSVGResourceType RenderSVGResourcePattern::s_resourceType = PatternRe
sourceType; |
| 42 | 42 |
| 43 RenderSVGResourcePattern::RenderSVGResourcePattern(SVGPatternElement* node) | 43 RenderSVGResourcePattern::RenderSVGResourcePattern(SVGPatternElement* node) |
| 44 : RenderSVGResourcePaintServer(node) | 44 : RenderSVGResourcePaintServer(node) |
| 45 , m_shouldCollectPatternAttributes(true) | 45 , m_shouldCollectPatternAttributes(true) |
| 46 { | 46 { |
| 47 } | 47 } |
| 48 | 48 |
| 49 void RenderSVGResourcePattern::trace(Visitor* visitor) |
| 50 { |
| 51 visitor->trace(m_attributes); |
| 52 RenderSVGResourcePaintServer::trace(visitor); |
| 53 } |
| 54 |
| 49 void RenderSVGResourcePattern::removeAllClientsFromCache(bool markForInvalidatio
n) | 55 void RenderSVGResourcePattern::removeAllClientsFromCache(bool markForInvalidatio
n) |
| 50 { | 56 { |
| 51 m_patternMap.clear(); | 57 m_patternMap.clear(); |
| 52 m_shouldCollectPatternAttributes = true; | 58 m_shouldCollectPatternAttributes = true; |
| 53 markAllClientsForInvalidation(markForInvalidation ? PaintInvalidation : Pare
ntOnlyInvalidation); | 59 markAllClientsForInvalidation(markForInvalidation ? PaintInvalidation : Pare
ntOnlyInvalidation); |
| 54 } | 60 } |
| 55 | 61 |
| 56 void RenderSVGResourcePattern::removeClientFromCache(RenderObject* client, bool
markForInvalidation) | 62 void RenderSVGResourcePattern::removeClientFromCache(RenderObject* client, bool
markForInvalidation) |
| 57 { | 63 { |
| 58 ASSERT(client); | 64 ASSERT(client); |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 ASSERT(!patternRenderer->needsLayout()); | 174 ASSERT(!patternRenderer->needsLayout()); |
| 169 | 175 |
| 170 SubtreeContentTransformScope contentTransformScope(contentTransform); | 176 SubtreeContentTransformScope contentTransformScope(contentTransform); |
| 171 for (RenderObject* child = patternRenderer->firstChild(); child; child = chi
ld->nextSibling()) | 177 for (RenderObject* child = patternRenderer->firstChild(); child; child = chi
ld->nextSibling()) |
| 172 SVGRenderingContext::renderSubtree(&recordingContext, child); | 178 SVGRenderingContext::renderSubtree(&recordingContext, child); |
| 173 | 179 |
| 174 return recordingContext.endRecording(); | 180 return recordingContext.endRecording(); |
| 175 } | 181 } |
| 176 | 182 |
| 177 } | 183 } |
| OLD | NEW |