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

Side by Side Diff: Source/core/svg/SVGMaskElement.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/SVGMarkerElement.cpp ('k') | Source/core/svg/SVGPathElement.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) 2005 Alexander Kellett <lypanov@kde.org> 4 * Copyright (C) 2005 Alexander Kellett <lypanov@kde.org>
5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
6 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2009-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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 reportAttributeParsingError(parseError, name, value); 103 reportAttributeParsingError(parseError, name, value);
104 } 104 }
105 105
106 void SVGMaskElement::svgAttributeChanged(const QualifiedName& attrName) 106 void SVGMaskElement::svgAttributeChanged(const QualifiedName& attrName)
107 { 107 {
108 if (!isSupportedAttribute(attrName)) { 108 if (!isSupportedAttribute(attrName)) {
109 SVGElement::svgAttributeChanged(attrName); 109 SVGElement::svgAttributeChanged(attrName);
110 return; 110 return;
111 } 111 }
112 112
113 SVGElementInstance::InvalidationGuard invalidationGuard(this); 113 SVGElement::InvalidationGuard invalidationGuard(this);
114 114
115 if (attrName == SVGNames::xAttr 115 if (attrName == SVGNames::xAttr
116 || attrName == SVGNames::yAttr 116 || attrName == SVGNames::yAttr
117 || attrName == SVGNames::widthAttr 117 || attrName == SVGNames::widthAttr
118 || attrName == SVGNames::heightAttr) 118 || attrName == SVGNames::heightAttr)
119 updateRelativeLengthsInformation(); 119 updateRelativeLengthsInformation();
120 120
121 RenderSVGResourceContainer* renderer = toRenderSVGResourceContainer(this->re nderer()); 121 RenderSVGResourceContainer* renderer = toRenderSVGResourceContainer(this->re nderer());
122 if (renderer) 122 if (renderer)
123 renderer->invalidateCacheAndMarkForLayout(); 123 renderer->invalidateCacheAndMarkForLayout();
(...skipping 17 matching lines...) Expand all
141 141
142 bool SVGMaskElement::selfHasRelativeLengths() const 142 bool SVGMaskElement::selfHasRelativeLengths() const
143 { 143 {
144 return m_x->currentValue()->isRelative() 144 return m_x->currentValue()->isRelative()
145 || m_y->currentValue()->isRelative() 145 || m_y->currentValue()->isRelative()
146 || m_width->currentValue()->isRelative() 146 || m_width->currentValue()->isRelative()
147 || m_height->currentValue()->isRelative(); 147 || m_height->currentValue()->isRelative();
148 } 148 }
149 149
150 } 150 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGMarkerElement.cpp ('k') | Source/core/svg/SVGPathElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698