| 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 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "core/dom/ElementTraversal.h" | 24 #include "core/dom/ElementTraversal.h" |
| 25 #include "core/rendering/svg/SVGRenderingContext.h" | 25 #include "core/rendering/svg/SVGRenderingContext.h" |
| 26 #include "core/svg/SVGFitToViewBox.h" | 26 #include "core/svg/SVGFitToViewBox.h" |
| 27 #include "platform/graphics/GraphicsContext.h" | 27 #include "platform/graphics/GraphicsContext.h" |
| 28 | 28 |
| 29 namespace blink { | 29 namespace blink { |
| 30 | 30 |
| 31 const RenderSVGResourceType RenderSVGResourcePattern::s_resourceType = PatternRe
sourceType; | 31 const RenderSVGResourceType RenderSVGResourcePattern::s_resourceType = PatternRe
sourceType; |
| 32 | 32 |
| 33 RenderSVGResourcePattern::RenderSVGResourcePattern(SVGPatternElement* node) | 33 RenderSVGResourcePattern::RenderSVGResourcePattern(SVGPatternElement* node) |
| 34 : RenderSVGResourceContainer(node) | 34 : RenderSVGResourcePaintServer(node) |
| 35 , m_shouldCollectPatternAttributes(true) | 35 , m_shouldCollectPatternAttributes(true) |
| 36 { | 36 { |
| 37 } | 37 } |
| 38 | 38 |
| 39 void RenderSVGResourcePattern::removeAllClientsFromCache(bool markForInvalidatio
n) | 39 void RenderSVGResourcePattern::removeAllClientsFromCache(bool markForInvalidatio
n) |
| 40 { | 40 { |
| 41 m_patternMap.clear(); | 41 m_patternMap.clear(); |
| 42 m_shouldCollectPatternAttributes = true; | 42 m_shouldCollectPatternAttributes = true; |
| 43 markAllClientsForInvalidation(markForInvalidation ? PaintInvalidation : Pare
ntOnlyInvalidation); | 43 markAllClientsForInvalidation(markForInvalidation ? PaintInvalidation : Pare
ntOnlyInvalidation); |
| 44 } | 44 } |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 continue; | 212 continue; |
| 213 if (element->renderer()->needsLayout()) | 213 if (element->renderer()->needsLayout()) |
| 214 return nullptr; | 214 return nullptr; |
| 215 SVGRenderingContext::renderSubtree(tileImage->context(), element->render
er()); | 215 SVGRenderingContext::renderSubtree(tileImage->context(), element->render
er()); |
| 216 } | 216 } |
| 217 | 217 |
| 218 return tileImage.release(); | 218 return tileImage.release(); |
| 219 } | 219 } |
| 220 | 220 |
| 221 } | 221 } |
| OLD | NEW |