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

Side by Side Diff: Source/core/svg/SVGGraphicsElement.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/SVGGradientElement.cpp ('k') | Source/core/svg/SVGImageElement.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, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4 * Copyright (C) 2014 Google, Inc. 4 * Copyright (C) 2014 Google, Inc.
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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 reportAttributeParsingError(parseError, name, value); 189 reportAttributeParsingError(parseError, name, value);
190 } 190 }
191 191
192 void SVGGraphicsElement::svgAttributeChanged(const QualifiedName& attrName) 192 void SVGGraphicsElement::svgAttributeChanged(const QualifiedName& attrName)
193 { 193 {
194 if (!isSupportedAttribute(attrName)) { 194 if (!isSupportedAttribute(attrName)) {
195 SVGElement::svgAttributeChanged(attrName); 195 SVGElement::svgAttributeChanged(attrName);
196 return; 196 return;
197 } 197 }
198 198
199 SVGElementInstance::InvalidationGuard invalidationGuard(this); 199 SVGElement::InvalidationGuard invalidationGuard(this);
200 200
201 // Reattach so the isValid() check will be run again during renderer creatio n. 201 // Reattach so the isValid() check will be run again during renderer creatio n.
202 if (SVGTests::isKnownAttribute(attrName)) { 202 if (SVGTests::isKnownAttribute(attrName)) {
203 lazyReattachIfAttached(); 203 lazyReattachIfAttached();
204 return; 204 return;
205 } 205 }
206 206
207 RenderObject* object = renderer(); 207 RenderObject* object = renderer();
208 if (!object) 208 if (!object)
209 return; 209 return;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 } 260 }
261 261
262 void SVGGraphicsElement::toClipPath(Path& path) 262 void SVGGraphicsElement::toClipPath(Path& path)
263 { 263 {
264 updatePathFromGraphicsElement(this, path); 264 updatePathFromGraphicsElement(this, path);
265 // FIXME: How do we know the element has done a layout? 265 // FIXME: How do we know the element has done a layout?
266 path.transform(animatedLocalTransform()); 266 path.transform(animatedLocalTransform());
267 } 267 }
268 268
269 } 269 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGGradientElement.cpp ('k') | Source/core/svg/SVGImageElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698