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

Side by Side Diff: Source/core/svg/SVGMarkerElement.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/SVGMPathElement.cpp ('k') | Source/core/svg/SVGMaskElement.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 2009-2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2009-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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 reportAttributeParsingError(parseError, name, value); 115 reportAttributeParsingError(parseError, name, value);
116 } 116 }
117 117
118 void SVGMarkerElement::svgAttributeChanged(const QualifiedName& attrName) 118 void SVGMarkerElement::svgAttributeChanged(const QualifiedName& attrName)
119 { 119 {
120 if (!isSupportedAttribute(attrName)) { 120 if (!isSupportedAttribute(attrName)) {
121 SVGElement::svgAttributeChanged(attrName); 121 SVGElement::svgAttributeChanged(attrName);
122 return; 122 return;
123 } 123 }
124 124
125 SVGElementInstance::InvalidationGuard invalidationGuard(this); 125 SVGElement::InvalidationGuard invalidationGuard(this);
126 126
127 if (attrName == SVGNames::refXAttr 127 if (attrName == SVGNames::refXAttr
128 || attrName == SVGNames::refYAttr 128 || attrName == SVGNames::refYAttr
129 || attrName == SVGNames::markerWidthAttr 129 || attrName == SVGNames::markerWidthAttr
130 || attrName == SVGNames::markerHeightAttr) 130 || attrName == SVGNames::markerHeightAttr)
131 updateRelativeLengthsInformation(); 131 updateRelativeLengthsInformation();
132 132
133 RenderSVGResourceContainer* renderer = toRenderSVGResourceContainer(this->re nderer()); 133 RenderSVGResourceContainer* renderer = toRenderSVGResourceContainer(this->re nderer());
134 if (renderer) 134 if (renderer)
135 renderer->invalidateCacheAndMarkForLayout(); 135 renderer->invalidateCacheAndMarkForLayout();
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 169
170 bool SVGMarkerElement::selfHasRelativeLengths() const 170 bool SVGMarkerElement::selfHasRelativeLengths() const
171 { 171 {
172 return m_refX->currentValue()->isRelative() 172 return m_refX->currentValue()->isRelative()
173 || m_refY->currentValue()->isRelative() 173 || m_refY->currentValue()->isRelative()
174 || m_markerWidth->currentValue()->isRelative() 174 || m_markerWidth->currentValue()->isRelative()
175 || m_markerHeight->currentValue()->isRelative(); 175 || m_markerHeight->currentValue()->isRelative();
176 } 176 }
177 177
178 } 178 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGMPathElement.cpp ('k') | Source/core/svg/SVGMaskElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698