Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: Source/core/rendering/svg/RenderSVGResourcePattern.cpp

Issue 694283002: Const-ify static s_resourceType members in RenderSVGResouce* classes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGResourcePattern.h ('k') | Source/core/rendering/svg/RenderSVGResourceRadialGradient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698