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

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

Issue 177093026: Remove unused SVG code (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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/SVGElement.h ('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 999 matching lines...) Expand 10 before | Expand all | Expand 10 after
1010 elementData()->m_animatedSVGAttributesAreDirty = false; 1010 elementData()->m_animatedSVGAttributesAreDirty = false;
1011 } else { 1011 } else {
1012 nonConstThis->localAttributeToPropertyMap().synchronizeProperty(nonConst This, name); 1012 nonConstThis->localAttributeToPropertyMap().synchronizeProperty(nonConst This, name);
1013 1013
1014 RefPtr<NewSVGAnimatedPropertyBase> property = m_newAttributeToPropertyMa p.get(name); 1014 RefPtr<NewSVGAnimatedPropertyBase> property = m_newAttributeToPropertyMa p.get(name);
1015 if (property && property->needsSynchronizeAttribute()) 1015 if (property && property->needsSynchronizeAttribute())
1016 property->synchronizeAttribute(); 1016 property->synchronizeAttribute();
1017 } 1017 }
1018 } 1018 }
1019 1019
1020 void SVGElement::synchronizeRequiredFeatures(SVGElement* contextElement)
1021 {
1022 ASSERT(contextElement);
1023 contextElement->synchronizeRequiredFeatures();
1024 }
1025
1026 void SVGElement::synchronizeRequiredExtensions(SVGElement* contextElement)
1027 {
1028 ASSERT(contextElement);
1029 contextElement->synchronizeRequiredExtensions();
1030 }
1031
1032 void SVGElement::synchronizeSystemLanguage(SVGElement* contextElement)
1033 {
1034 ASSERT(contextElement);
1035 contextElement->synchronizeSystemLanguage();
1036 }
1037
1038 PassRefPtr<RenderStyle> SVGElement::customStyleForRenderer() 1020 PassRefPtr<RenderStyle> SVGElement::customStyleForRenderer()
1039 { 1021 {
1040 if (!correspondingElement()) 1022 if (!correspondingElement())
1041 return document().ensureStyleResolver().styleForElement(this); 1023 return document().ensureStyleResolver().styleForElement(this);
1042 1024
1043 RenderStyle* style = 0; 1025 RenderStyle* style = 0;
1044 if (Element* parent = parentOrShadowHostElement()) { 1026 if (Element* parent = parentOrShadowHostElement()) {
1045 if (RenderObject* renderer = parent->renderer()) 1027 if (RenderObject* renderer = parent->renderer())
1046 style = renderer->style(); 1028 style = renderer->style();
1047 } 1029 }
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
1191 animatableAttributes.add(SVGNames::zAttr); 1173 animatableAttributes.add(SVGNames::zAttr);
1192 } 1174 }
1193 1175
1194 if (name == classAttr) 1176 if (name == classAttr)
1195 return true; 1177 return true;
1196 1178
1197 return animatableAttributes.contains(name); 1179 return animatableAttributes.contains(name);
1198 } 1180 }
1199 #endif 1181 #endif
1200 } 1182 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698