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

Side by Side Diff: Source/core/svg/SVGLinearGradientElement.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/SVGLineElement.cpp ('k') | Source/core/svg/SVGMPathElement.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) 2008 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> 5 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org>
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 reportAttributeParsingError(parseError, name, value); 88 reportAttributeParsingError(parseError, name, value);
89 } 89 }
90 90
91 void SVGLinearGradientElement::svgAttributeChanged(const QualifiedName& attrName ) 91 void SVGLinearGradientElement::svgAttributeChanged(const QualifiedName& attrName )
92 { 92 {
93 if (!isSupportedAttribute(attrName)) { 93 if (!isSupportedAttribute(attrName)) {
94 SVGGradientElement::svgAttributeChanged(attrName); 94 SVGGradientElement::svgAttributeChanged(attrName);
95 return; 95 return;
96 } 96 }
97 97
98 SVGElementInstance::InvalidationGuard invalidationGuard(this); 98 SVGElement::InvalidationGuard invalidationGuard(this);
99 99
100 updateRelativeLengthsInformation(); 100 updateRelativeLengthsInformation();
101 101
102 RenderSVGResourceContainer* renderer = toRenderSVGResourceContainer(this->re nderer()); 102 RenderSVGResourceContainer* renderer = toRenderSVGResourceContainer(this->re nderer());
103 if (renderer) 103 if (renderer)
104 renderer->invalidateCacheAndMarkForLayout(); 104 renderer->invalidateCacheAndMarkForLayout();
105 } 105 }
106 106
107 RenderObject* SVGLinearGradientElement::createRenderer(RenderStyle*) 107 RenderObject* SVGLinearGradientElement::createRenderer(RenderStyle*)
108 { 108 {
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 183
184 bool SVGLinearGradientElement::selfHasRelativeLengths() const 184 bool SVGLinearGradientElement::selfHasRelativeLengths() const
185 { 185 {
186 return m_x1->currentValue()->isRelative() 186 return m_x1->currentValue()->isRelative()
187 || m_y1->currentValue()->isRelative() 187 || m_y1->currentValue()->isRelative()
188 || m_x2->currentValue()->isRelative() 188 || m_x2->currentValue()->isRelative()
189 || m_y2->currentValue()->isRelative(); 189 || m_y2->currentValue()->isRelative();
190 } 190 }
191 191
192 } 192 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGLineElement.cpp ('k') | Source/core/svg/SVGMPathElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698