| OLD | NEW | 
|    1 /* |    1 /* | 
|    2  * Copyright (C) 2013 Google Inc.  All rights reserved. |    2  * Copyright (C) 2013 Google 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 are |    5  * modification, are permitted provided that the following conditions are | 
|    6  * met: |    6  * met: | 
|    7  * |    7  * | 
|    8  *     * Redistributions of source code must retain the above copyright |    8  *     * Redistributions of source code must retain the above copyright | 
|    9  * notice, this list of conditions and the following disclaimer. |    9  * notice, this list of conditions and the following disclaimer. | 
|   10  *     * Redistributions in binary form must reproduce the above |   10  *     * Redistributions in binary form must reproduce the above | 
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  445 } |  445 } | 
|  446  |  446  | 
|  447 void VTTRegion::startTimer() |  447 void VTTRegion::startTimer() | 
|  448 { |  448 { | 
|  449     WTF_LOG(Media, "VTTRegion::startTimer"); |  449     WTF_LOG(Media, "VTTRegion::startTimer"); | 
|  450  |  450  | 
|  451     if (m_scrollTimer.isActive()) |  451     if (m_scrollTimer.isActive()) | 
|  452         return; |  452         return; | 
|  453  |  453  | 
|  454     double duration = isScrollingRegion() ? scrollTime : 0; |  454     double duration = isScrollingRegion() ? scrollTime : 0; | 
|  455     m_scrollTimer.startOneShot(duration); |  455     m_scrollTimer.startOneShot(duration, FROM_HERE); | 
|  456 } |  456 } | 
|  457  |  457  | 
|  458 void VTTRegion::stopTimer() |  458 void VTTRegion::stopTimer() | 
|  459 { |  459 { | 
|  460     WTF_LOG(Media, "VTTRegion::stopTimer"); |  460     WTF_LOG(Media, "VTTRegion::stopTimer"); | 
|  461  |  461  | 
|  462     if (m_scrollTimer.isActive()) |  462     if (m_scrollTimer.isActive()) | 
|  463         m_scrollTimer.stop(); |  463         m_scrollTimer.stop(); | 
|  464 } |  464 } | 
|  465  |  465  | 
|  466 void VTTRegion::scrollTimerFired(Timer<VTTRegion>*) |  466 void VTTRegion::scrollTimerFired(Timer<VTTRegion>*) | 
|  467 { |  467 { | 
|  468     WTF_LOG(Media, "VTTRegion::scrollTimerFired"); |  468     WTF_LOG(Media, "VTTRegion::scrollTimerFired"); | 
|  469  |  469  | 
|  470     stopTimer(); |  470     stopTimer(); | 
|  471     displayLastVTTCueBox(); |  471     displayLastVTTCueBox(); | 
|  472 } |  472 } | 
|  473  |  473  | 
|  474 } // namespace WebCore |  474 } // namespace WebCore | 
| OLD | NEW |