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

Side by Side Diff: Source/core/svg/SVGMPathElement.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/SVGLinearGradientElement.cpp ('k') | Source/core/svg/SVGMarkerElement.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) 2007 Eric Seidel <eric@webkit.org> 2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 reportAttributeParsingError(parseError, name, value); 119 reportAttributeParsingError(parseError, name, value);
120 } 120 }
121 121
122 void SVGMPathElement::svgAttributeChanged(const QualifiedName& attrName) 122 void SVGMPathElement::svgAttributeChanged(const QualifiedName& attrName)
123 { 123 {
124 if (!isSupportedAttribute(attrName)) { 124 if (!isSupportedAttribute(attrName)) {
125 SVGElement::svgAttributeChanged(attrName); 125 SVGElement::svgAttributeChanged(attrName);
126 return; 126 return;
127 } 127 }
128 128
129 SVGElementInstance::InvalidationGuard invalidationGuard(this); 129 SVGElement::InvalidationGuard invalidationGuard(this);
130 130
131 if (SVGURIReference::isKnownAttribute(attrName)) { 131 if (SVGURIReference::isKnownAttribute(attrName)) {
132 buildPendingResource(); 132 buildPendingResource();
133 return; 133 return;
134 } 134 }
135 135
136 ASSERT_NOT_REACHED(); 136 ASSERT_NOT_REACHED();
137 } 137 }
138 138
139 SVGPathElement* SVGMPathElement::pathElement() 139 SVGPathElement* SVGMPathElement::pathElement()
140 { 140 {
141 Element* target = targetElementFromIRIString(hrefString(), treeScope()); 141 Element* target = targetElementFromIRIString(hrefString(), treeScope());
142 return isSVGPathElement(target) ? toSVGPathElement(target) : 0; 142 return isSVGPathElement(target) ? toSVGPathElement(target) : 0;
143 } 143 }
144 144
145 void SVGMPathElement::targetPathChanged() 145 void SVGMPathElement::targetPathChanged()
146 { 146 {
147 notifyParentOfPathChange(parentNode()); 147 notifyParentOfPathChange(parentNode());
148 } 148 }
149 149
150 void SVGMPathElement::notifyParentOfPathChange(ContainerNode* parent) 150 void SVGMPathElement::notifyParentOfPathChange(ContainerNode* parent)
151 { 151 {
152 if (isSVGAnimateMotionElement(parent)) 152 if (isSVGAnimateMotionElement(parent))
153 toSVGAnimateMotionElement(parent)->updateAnimationPath(); 153 toSVGAnimateMotionElement(parent)->updateAnimationPath();
154 } 154 }
155 155
156 } // namespace WebCore 156 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/svg/SVGLinearGradientElement.cpp ('k') | Source/core/svg/SVGMarkerElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698