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

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

Issue 397733004: Allow assertions to be enabled in Blink Release builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased. Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGElement.h ('k') | Source/core/svg/SVGScriptElement.h » ('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, 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 969 matching lines...) Expand 10 before | Expand all | Expand 10 after
980 if (m_targetElement) 980 if (m_targetElement)
981 m_targetElement->setInstanceUpdatesBlocked(true); 981 m_targetElement->setInstanceUpdatesBlocked(true);
982 } 982 }
983 983
984 SVGElement::InstanceUpdateBlocker::~InstanceUpdateBlocker() 984 SVGElement::InstanceUpdateBlocker::~InstanceUpdateBlocker()
985 { 985 {
986 if (m_targetElement) 986 if (m_targetElement)
987 m_targetElement->setInstanceUpdatesBlocked(false); 987 m_targetElement->setInstanceUpdatesBlocked(false);
988 } 988 }
989 989
990 #ifndef NDEBUG 990 #if ENABLE(ASSERT)
991 bool SVGElement::isAnimatableAttribute(const QualifiedName& name) const 991 bool SVGElement::isAnimatableAttribute(const QualifiedName& name) const
992 { 992 {
993 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, animatableAttributes, ()); 993 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, animatableAttributes, ());
994 994
995 if (animatableAttributes.isEmpty()) { 995 if (animatableAttributes.isEmpty()) {
996 animatableAttributes.add(XLinkNames::hrefAttr); 996 animatableAttributes.add(XLinkNames::hrefAttr);
997 animatableAttributes.add(SVGNames::amplitudeAttr); 997 animatableAttributes.add(SVGNames::amplitudeAttr);
998 animatableAttributes.add(SVGNames::azimuthAttr); 998 animatableAttributes.add(SVGNames::azimuthAttr);
999 animatableAttributes.add(SVGNames::baseFrequencyAttr); 999 animatableAttributes.add(SVGNames::baseFrequencyAttr);
1000 animatableAttributes.add(SVGNames::biasAttr); 1000 animatableAttributes.add(SVGNames::biasAttr);
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
1167 Element::trace(visitor); 1167 Element::trace(visitor);
1168 } 1168 }
1169 1169
1170 const AtomicString& SVGElement::eventParameterName() 1170 const AtomicString& SVGElement::eventParameterName()
1171 { 1171 {
1172 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt", AtomicString::Con structFromLiteral)); 1172 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt", AtomicString::Con structFromLiteral));
1173 return evtString; 1173 return evtString;
1174 } 1174 }
1175 1175
1176 } 1176 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGElement.h ('k') | Source/core/svg/SVGScriptElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698