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

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

Issue 468933002: Rename Repaint to paintInvalidation in svg, part 2. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 3 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
4 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> 4 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org>
5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 5 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 22 matching lines...) Expand all
33 RenderSVGResourceGradient::RenderSVGResourceGradient(SVGGradientElement* node) 33 RenderSVGResourceGradient::RenderSVGResourceGradient(SVGGradientElement* node)
34 : RenderSVGResourceContainer(node) 34 : RenderSVGResourceContainer(node)
35 , m_shouldCollectGradientAttributes(true) 35 , m_shouldCollectGradientAttributes(true)
36 { 36 {
37 } 37 }
38 38
39 void RenderSVGResourceGradient::removeAllClientsFromCache(bool markForInvalidati on) 39 void RenderSVGResourceGradient::removeAllClientsFromCache(bool markForInvalidati on)
40 { 40 {
41 m_gradientMap.clear(); 41 m_gradientMap.clear();
42 m_shouldCollectGradientAttributes = true; 42 m_shouldCollectGradientAttributes = true;
43 markAllClientsForInvalidation(markForInvalidation ? RepaintInvalidation : Pa rentOnlyInvalidation); 43 markAllClientsForInvalidation(markForInvalidation ? PaintInvalidation : Pare ntOnlyInvalidation);
44 } 44 }
45 45
46 void RenderSVGResourceGradient::removeClientFromCache(RenderObject* client, bool markForInvalidation) 46 void RenderSVGResourceGradient::removeClientFromCache(RenderObject* client, bool markForInvalidation)
47 { 47 {
48 ASSERT(client); 48 ASSERT(client);
49 m_gradientMap.remove(client); 49 m_gradientMap.remove(client);
50 markClientForInvalidation(client, markForInvalidation ? RepaintInvalidation : ParentOnlyInvalidation); 50 markClientForInvalidation(client, markForInvalidation ? PaintInvalidation : ParentOnlyInvalidation);
51 } 51 }
52 52
53 bool RenderSVGResourceGradient::applyResource(RenderObject* object, RenderStyle* style, GraphicsContext*& context, unsigned short resourceMode) 53 bool RenderSVGResourceGradient::applyResource(RenderObject* object, RenderStyle* style, GraphicsContext*& context, unsigned short resourceMode)
54 { 54 {
55 ASSERT(object); 55 ASSERT(object);
56 ASSERT(style); 56 ASSERT(style);
57 ASSERT(context); 57 ASSERT(context);
58 ASSERT(resourceMode != ApplyToDefaultMode); 58 ASSERT(resourceMode != ApplyToDefaultMode);
59 59
60 clearInvalidationMask(); 60 clearInvalidationMask();
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 return SpreadMethodReflect; 168 return SpreadMethodReflect;
169 case SVGSpreadMethodRepeat: 169 case SVGSpreadMethodRepeat:
170 return SpreadMethodRepeat; 170 return SpreadMethodRepeat;
171 } 171 }
172 172
173 ASSERT_NOT_REACHED(); 173 ASSERT_NOT_REACHED();
174 return SpreadMethodPad; 174 return SpreadMethodPad;
175 } 175 }
176 176
177 } 177 }
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGResourceFilter.cpp ('k') | Source/core/rendering/svg/RenderSVGResourcePattern.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698