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

Side by Side Diff: Source/core/svg/SVGPatternElement.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/SVGPathElement.cpp ('k') | Source/core/svg/SVGPolyElement.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, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org> 2 * Copyright (C) 2004, 2005, 2006, 2007, 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 reportAttributeParsingError(parseError, name, value); 109 reportAttributeParsingError(parseError, name, value);
110 } 110 }
111 111
112 void SVGPatternElement::svgAttributeChanged(const QualifiedName& attrName) 112 void SVGPatternElement::svgAttributeChanged(const QualifiedName& attrName)
113 { 113 {
114 if (!isSupportedAttribute(attrName)) { 114 if (!isSupportedAttribute(attrName)) {
115 SVGElement::svgAttributeChanged(attrName); 115 SVGElement::svgAttributeChanged(attrName);
116 return; 116 return;
117 } 117 }
118 118
119 SVGElementInstance::InvalidationGuard invalidationGuard(this); 119 SVGElement::InvalidationGuard invalidationGuard(this);
120 120
121 if (attrName == SVGNames::xAttr 121 if (attrName == SVGNames::xAttr
122 || attrName == SVGNames::yAttr 122 || attrName == SVGNames::yAttr
123 || attrName == SVGNames::widthAttr 123 || attrName == SVGNames::widthAttr
124 || attrName == SVGNames::heightAttr) 124 || attrName == SVGNames::heightAttr)
125 updateRelativeLengthsInformation(); 125 updateRelativeLengthsInformation();
126 126
127 RenderSVGResourceContainer* renderer = toRenderSVGResourceContainer(this->re nderer()); 127 RenderSVGResourceContainer* renderer = toRenderSVGResourceContainer(this->re nderer());
128 if (renderer) 128 if (renderer)
129 renderer->invalidateCacheAndMarkForLayout(); 129 renderer->invalidateCacheAndMarkForLayout();
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 215
216 bool SVGPatternElement::selfHasRelativeLengths() const 216 bool SVGPatternElement::selfHasRelativeLengths() const
217 { 217 {
218 return m_x->currentValue()->isRelative() 218 return m_x->currentValue()->isRelative()
219 || m_y->currentValue()->isRelative() 219 || m_y->currentValue()->isRelative()
220 || m_width->currentValue()->isRelative() 220 || m_width->currentValue()->isRelative()
221 || m_height->currentValue()->isRelative(); 221 || m_height->currentValue()->isRelative();
222 } 222 }
223 223
224 } 224 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGPathElement.cpp ('k') | Source/core/svg/SVGPolyElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698