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

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: 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
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 951 matching lines...) Expand 10 before | Expand all | Expand 10 after
962 if (attrName == HTMLNames::classAttr) { 962 if (attrName == HTMLNames::classAttr) {
963 classAttributeChanged(classNameCurrentValue()); 963 classAttributeChanged(classNameCurrentValue());
964 SVGElementInstance::invalidateAllInstancesOfElement(this); 964 SVGElementInstance::invalidateAllInstancesOfElement(this);
965 return; 965 return;
966 } 966 }
967 967
968 if (isIdAttributeName(attrName)) { 968 if (isIdAttributeName(attrName)) {
969 RenderObject* object = renderer(); 969 RenderObject* object = renderer();
970 // Notify resources about id changes, this is important as we cache reso urces by id in SVGDocumentExtensions 970 // Notify resources about id changes, this is important as we cache reso urces by id in SVGDocumentExtensions
971 if (object && object->isSVGResourceContainer()) 971 if (object && object->isSVGResourceContainer())
972 object->toRenderSVGResourceContainer()->idChanged(); 972 toRenderSVGResourceContainer(object)->idChanged();
973 if (inDocument()) 973 if (inDocument())
974 buildPendingResourcesIfNeeded(); 974 buildPendingResourcesIfNeeded();
975 SVGElementInstance::invalidateAllInstancesOfElement(this); 975 SVGElementInstance::invalidateAllInstancesOfElement(this);
976 return; 976 return;
977 } 977 }
978 } 978 }
979 979
980 void SVGElement::synchronizeAnimatedSVGAttribute(const QualifiedName& name) cons t 980 void SVGElement::synchronizeAnimatedSVGAttribute(const QualifiedName& name) cons t
981 { 981 {
982 if (!elementData() || !elementData()->m_animatedSVGAttributesAreDirty) 982 if (!elementData() || !elementData()->m_animatedSVGAttributesAreDirty)
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
1166 } 1166 }
1167 1167
1168 if (name == classAttr) 1168 if (name == classAttr)
1169 return true; 1169 return true;
1170 1170
1171 return animatableAttributes.contains(name); 1171 return animatableAttributes.contains(name);
1172 } 1172 }
1173 #endif 1173 #endif
1174 1174
1175 } 1175 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698