| 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 26 matching lines...) Expand all Loading... |
| 37 RefPtr<Pattern> pattern; | 37 RefPtr<Pattern> pattern; |
| 38 AffineTransform transform; | 38 AffineTransform transform; |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 RenderSVGResourcePattern::RenderSVGResourcePattern(SVGPatternElement* node) | 41 RenderSVGResourcePattern::RenderSVGResourcePattern(SVGPatternElement* node) |
| 42 : RenderSVGResourcePaintServer(node) | 42 : RenderSVGResourcePaintServer(node) |
| 43 , m_shouldCollectPatternAttributes(true) | 43 , m_shouldCollectPatternAttributes(true) |
| 44 { | 44 { |
| 45 } | 45 } |
| 46 | 46 |
| 47 void RenderSVGResourcePattern::trace(Visitor* visitor) |
| 48 { |
| 49 visitor->trace(m_attributes); |
| 50 RenderSVGResourcePaintServer::trace(visitor); |
| 51 } |
| 52 |
| 47 void RenderSVGResourcePattern::removeAllClientsFromCache(bool markForInvalidatio
n) | 53 void RenderSVGResourcePattern::removeAllClientsFromCache(bool markForInvalidatio
n) |
| 48 { | 54 { |
| 49 m_patternMap.clear(); | 55 m_patternMap.clear(); |
| 50 m_shouldCollectPatternAttributes = true; | 56 m_shouldCollectPatternAttributes = true; |
| 51 markAllClientsForInvalidation(markForInvalidation ? PaintInvalidation : Pare
ntOnlyInvalidation); | 57 markAllClientsForInvalidation(markForInvalidation ? PaintInvalidation : Pare
ntOnlyInvalidation); |
| 52 } | 58 } |
| 53 | 59 |
| 54 void RenderSVGResourcePattern::removeClientFromCache(RenderObject* client, bool
markForInvalidation) | 60 void RenderSVGResourcePattern::removeClientFromCache(RenderObject* client, bool
markForInvalidation) |
| 55 { | 61 { |
| 56 ASSERT(client); | 62 ASSERT(client); |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 ASSERT(!patternRenderer->needsLayout()); | 172 ASSERT(!patternRenderer->needsLayout()); |
| 167 | 173 |
| 168 SubtreeContentTransformScope contentTransformScope(contentTransform); | 174 SubtreeContentTransformScope contentTransformScope(contentTransform); |
| 169 for (RenderObject* child = patternRenderer->firstChild(); child; child = chi
ld->nextSibling()) | 175 for (RenderObject* child = patternRenderer->firstChild(); child; child = chi
ld->nextSibling()) |
| 170 SVGRenderingContext::renderSubtree(&recordingContext, child); | 176 SVGRenderingContext::renderSubtree(&recordingContext, child); |
| 171 | 177 |
| 172 return recordingContext.endRecording(); | 178 return recordingContext.endRecording(); |
| 173 } | 179 } |
| 174 | 180 |
| 175 } | 181 } |
| OLD | NEW |