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 20 matching lines...) Expand all Loading... |
31 | 31 |
32 namespace blink { | 32 namespace blink { |
33 | 33 |
34 struct PatternData { | 34 struct PatternData { |
35 WTF_MAKE_FAST_ALLOCATED; | 35 WTF_MAKE_FAST_ALLOCATED; |
36 public: | 36 public: |
37 RefPtr<Pattern> pattern; | 37 RefPtr<Pattern> pattern; |
38 AffineTransform transform; | 38 AffineTransform transform; |
39 }; | 39 }; |
40 | 40 |
41 const RenderSVGResourceType RenderSVGResourcePattern::s_resourceType = PatternRe
sourceType; | |
42 | |
43 RenderSVGResourcePattern::RenderSVGResourcePattern(SVGPatternElement* node) | 41 RenderSVGResourcePattern::RenderSVGResourcePattern(SVGPatternElement* node) |
44 : RenderSVGResourcePaintServer(node) | 42 : RenderSVGResourcePaintServer(node) |
45 , m_shouldCollectPatternAttributes(true) | 43 , m_shouldCollectPatternAttributes(true) |
46 { | 44 { |
47 } | 45 } |
48 | 46 |
49 void RenderSVGResourcePattern::removeAllClientsFromCache(bool markForInvalidatio
n) | 47 void RenderSVGResourcePattern::removeAllClientsFromCache(bool markForInvalidatio
n) |
50 { | 48 { |
51 m_patternMap.clear(); | 49 m_patternMap.clear(); |
52 m_shouldCollectPatternAttributes = true; | 50 m_shouldCollectPatternAttributes = true; |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 ASSERT(!patternRenderer->needsLayout()); | 166 ASSERT(!patternRenderer->needsLayout()); |
169 | 167 |
170 SubtreeContentTransformScope contentTransformScope(contentTransform); | 168 SubtreeContentTransformScope contentTransformScope(contentTransform); |
171 for (RenderObject* child = patternRenderer->firstChild(); child; child = chi
ld->nextSibling()) | 169 for (RenderObject* child = patternRenderer->firstChild(); child; child = chi
ld->nextSibling()) |
172 SVGRenderingContext::renderSubtree(&recordingContext, child); | 170 SVGRenderingContext::renderSubtree(&recordingContext, child); |
173 | 171 |
174 return recordingContext.endRecording(); | 172 return recordingContext.endRecording(); |
175 } | 173 } |
176 | 174 |
177 } | 175 } |
OLD | NEW |