Changeset 173506 in webkit


Ignore:
Timestamp:
Sep 10, 2014 9:01:53 PM (10 years ago)
Author:
cavalcantii@gmail.com
Message:

[SVG] Cleanup iterator code in SMILTimeContainer using range-based loop
https://bugs.webkit.org/show_bug.cgi?id=136720

Reviewed by Filip Pizlo.

No new tests, no change on behavior.

  • svg/animation/SMILTimeContainer.cpp:

(WebCore::SMILTimeContainer::setElapsed):
(WebCore::SMILTimeContainer::updateAnimations):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r173504 r173506  
     12014-09-10  Adenilson Cavalcanti  <cavalcantii@gmail.com>
     2
     3        [SVG] Cleanup iterator code in SMILTimeContainer using range-based loop
     4        https://bugs.webkit.org/show_bug.cgi?id=136720
     5
     6        Reviewed by Filip Pizlo.
     7
     8        No new tests, no change on behavior.
     9
     10        * svg/animation/SMILTimeContainer.cpp:
     11        (WebCore::SMILTimeContainer::setElapsed):
     12        (WebCore::SMILTimeContainer::updateAnimations):
     13
    1142014-09-10  Timothy Horton  <timothy_horton@apple.com>
    215
  • trunk/Source/WebCore/svg/animation/SMILTimeContainer.cpp

    r163440 r173506  
    189189    m_preventScheduledAnimationsChanges = true;
    190190#endif
    191     GroupedAnimationsMap::iterator end = m_scheduledAnimations.end();
    192     for (GroupedAnimationsMap::iterator it = m_scheduledAnimations.begin(); it != end; ++it) {
    193         AnimationsVector* scheduled = it->value.get();
     191    for (auto& it : m_scheduledAnimations) {
     192        AnimationsVector* scheduled = it.value.get();
    194193        unsigned size = scheduled->size();
    195194        for (unsigned n = 0; n < size; n++)
     
    267266
    268267    AnimationsVector animationsToApply;
    269     GroupedAnimationsMap::iterator end = m_scheduledAnimations.end();
    270     for (GroupedAnimationsMap::iterator it = m_scheduledAnimations.begin(); it != end; ++it) {
    271         AnimationsVector* scheduled = it->value.get();
     268    for (auto& it : m_scheduledAnimations) {
     269        AnimationsVector* scheduled = it.value.get();
    272270
    273271        // Sort according to priority. Elements with later begin time have higher priority.
Note: See TracChangeset for help on using the changeset viewer.