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

Side by Side Diff: Source/core/svg/SVGElement.cpp

Issue 27648002: Refine toRenderSVGResourceContainer() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years, 2 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/rendering/svg/SVGResourcesCycleSolver.cpp ('k') | no next file » | 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, 2008 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org>
4 * Copyright (C) 2008 Apple Inc. All rights reserved. 4 * Copyright (C) 2008 Apple Inc. All rights reserved.
5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com>
6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> 6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au>
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 963 matching lines...) Expand 10 before | Expand all | Expand 10 after
974 if (attrName == HTMLNames::classAttr) { 974 if (attrName == HTMLNames::classAttr) {
975 classAttributeChanged(classNameCurrentValue()); 975 classAttributeChanged(classNameCurrentValue());
976 SVGElementInstance::invalidateAllInstancesOfElement(this); 976 SVGElementInstance::invalidateAllInstancesOfElement(this);
977 return; 977 return;
978 } 978 }
979 979
980 if (isIdAttributeName(attrName)) { 980 if (isIdAttributeName(attrName)) {
981 RenderObject* object = renderer(); 981 RenderObject* object = renderer();
982 // Notify resources about id changes, this is important as we cache reso urces by id in SVGDocumentExtensions 982 // Notify resources about id changes, this is important as we cache reso urces by id in SVGDocumentExtensions
983 if (object && object->isSVGResourceContainer()) 983 if (object && object->isSVGResourceContainer())
984 object->toRenderSVGResourceContainer()->idChanged(); 984 toRenderSVGResourceContainer(object)->idChanged();
985 if (inDocument()) 985 if (inDocument())
986 buildPendingResourcesIfNeeded(); 986 buildPendingResourcesIfNeeded();
987 SVGElementInstance::invalidateAllInstancesOfElement(this); 987 SVGElementInstance::invalidateAllInstancesOfElement(this);
988 return; 988 return;
989 } 989 }
990 } 990 }
991 991
992 void SVGElement::synchronizeAnimatedSVGAttribute(const QualifiedName& name) cons t 992 void SVGElement::synchronizeAnimatedSVGAttribute(const QualifiedName& name) cons t
993 { 993 {
994 if (!elementData() || !elementData()->m_animatedSVGAttributesAreDirty) 994 if (!elementData() || !elementData()->m_animatedSVGAttributesAreDirty)
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
1178 } 1178 }
1179 1179
1180 if (name == classAttr) 1180 if (name == classAttr)
1181 return true; 1181 return true;
1182 1182
1183 return animatableAttributes.contains(name); 1183 return animatableAttributes.contains(name);
1184 } 1184 }
1185 #endif 1185 #endif
1186 1186
1187 } 1187 }
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/SVGResourcesCycleSolver.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698