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

Side by Side Diff: Source/core/svg/SVGGradientElement.cpp

Issue 268223003: Move InvalidationGuard/InstanceUpdateBlocker out of SVGElementInstance (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Perform the renames Created 6 years, 7 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
« no previous file with comments | « Source/core/svg/SVGGElement.cpp ('k') | Source/core/svg/SVGGraphicsElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2010. 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 reportAttributeParsingError(parseError, name, value); 93 reportAttributeParsingError(parseError, name, value);
94 } 94 }
95 95
96 void SVGGradientElement::svgAttributeChanged(const QualifiedName& attrName) 96 void SVGGradientElement::svgAttributeChanged(const QualifiedName& attrName)
97 { 97 {
98 if (!isSupportedAttribute(attrName)) { 98 if (!isSupportedAttribute(attrName)) {
99 SVGElement::svgAttributeChanged(attrName); 99 SVGElement::svgAttributeChanged(attrName);
100 return; 100 return;
101 } 101 }
102 102
103 SVGElementInstance::InvalidationGuard invalidationGuard(this); 103 SVGElement::InvalidationGuard invalidationGuard(this);
104 104
105 RenderSVGResourceContainer* renderer = toRenderSVGResourceContainer(this->re nderer()); 105 RenderSVGResourceContainer* renderer = toRenderSVGResourceContainer(this->re nderer());
106 if (renderer) 106 if (renderer)
107 renderer->invalidateCacheAndMarkForLayout(); 107 renderer->invalidateCacheAndMarkForLayout();
108 } 108 }
109 109
110 void SVGGradientElement::childrenChanged(bool changedByParser, Node* beforeChang e, Node* afterChange, int childCountDelta) 110 void SVGGradientElement::childrenChanged(bool changedByParser, Node* beforeChang e, Node* afterChange, int childCountDelta)
111 { 111 {
112 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil dCountDelta); 112 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil dCountDelta);
113 113
(...skipping 15 matching lines...) Expand all
129 offset = std::min(std::max(previousOffset, offset), 1.0f); 129 offset = std::min(std::max(previousOffset, offset), 1.0f);
130 previousOffset = offset; 130 previousOffset = offset;
131 131
132 stops.append(Gradient::ColorStop(offset, stop->stopColorIncludingOpacity ())); 132 stops.append(Gradient::ColorStop(offset, stop->stopColorIncludingOpacity ()));
133 } 133 }
134 134
135 return stops; 135 return stops;
136 } 136 }
137 137
138 } 138 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGGElement.cpp ('k') | Source/core/svg/SVGGraphicsElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698