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

Side by Side Diff: Source/core/svg/animation/SVGSMILElement.cpp

Issue 560273004: Use AtomicString API directly (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add more Created 6 years, 3 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/SVGVKernElement.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) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 if (m_cachedRepeatCount != invalidCachedTime) 767 if (m_cachedRepeatCount != invalidCachedTime)
768 return m_cachedRepeatCount; 768 return m_cachedRepeatCount;
769 SMILTime computedRepeatCount = SMILTime::unresolved(); 769 SMILTime computedRepeatCount = SMILTime::unresolved();
770 const AtomicString& value = fastGetAttribute(SVGNames::repeatCountAttr); 770 const AtomicString& value = fastGetAttribute(SVGNames::repeatCountAttr);
771 if (!value.isNull()) { 771 if (!value.isNull()) {
772 DEFINE_STATIC_LOCAL(const AtomicString, indefiniteValue, ("indefinite", AtomicString::ConstructFromLiteral)); 772 DEFINE_STATIC_LOCAL(const AtomicString, indefiniteValue, ("indefinite", AtomicString::ConstructFromLiteral));
773 if (value == indefiniteValue) { 773 if (value == indefiniteValue) {
774 computedRepeatCount = SMILTime::indefinite(); 774 computedRepeatCount = SMILTime::indefinite();
775 } else { 775 } else {
776 bool ok; 776 bool ok;
777 double result = value.string().toDouble(&ok); 777 double result = value.toDouble(&ok);
778 if (ok && result > 0) 778 if (ok && result > 0)
779 computedRepeatCount = result; 779 computedRepeatCount = result;
780 } 780 }
781 } 781 }
782 m_cachedRepeatCount = computedRepeatCount; 782 m_cachedRepeatCount = computedRepeatCount;
783 return m_cachedRepeatCount; 783 return m_cachedRepeatCount;
784 } 784 }
785 785
786 SMILTime SVGSMILElement::maxValue() const 786 SMILTime SVGSMILElement::maxValue() const
787 { 787 {
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
1362 #if ENABLE(OILPAN) 1362 #if ENABLE(OILPAN)
1363 visitor->trace(m_targetElement); 1363 visitor->trace(m_targetElement);
1364 visitor->trace(m_timeContainer); 1364 visitor->trace(m_timeContainer);
1365 visitor->trace(m_conditions); 1365 visitor->trace(m_conditions);
1366 visitor->trace(m_syncBaseDependents); 1366 visitor->trace(m_syncBaseDependents);
1367 #endif 1367 #endif
1368 SVGElement::trace(visitor); 1368 SVGElement::trace(visitor);
1369 } 1369 }
1370 1370
1371 } 1371 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGVKernElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698