public void fixFrameDurations ( int [ ] frameDurationMs ) { // We follow Chrome's behavior which comes from Firefox. // Comment from Chrome's ImageSource.cpp follows: // We follow Firefox's behavior and use a duration of 100 ms for any frames that specify // a duration of <= 10 ms. See <rdar://problem/7689300> and <http://webkit.org/b/36082> // for more information. for ( int i = 0 ; i < frameDurationMs . length ; i ++ ) { if ( frameDurationMs [ i ] < MIN_FRAME_DURATION_MS ) { frameDurationMs [ i ] = FRAME_DURATION_MS_FOR_MIN ; } } }
Adjusts the frame duration array to respect logic for minimum frame duration time .