| Index: third_party/WebKit/Source/platform/graphics/ImageSource.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/ImageSource.cpp b/third_party/WebKit/Source/platform/graphics/ImageSource.cpp
|
| index e48570d84f975a36e963c05e9400bb9578ecdf30..18ddce8b77d606926c5c4dce2f7dd673ce4bdc1a 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/ImageSource.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/ImageSource.cpp
|
| @@ -51,8 +51,8 @@ bool ImageSource::setData(PassRefPtr<SharedBuffer> passData,
|
|
|
| if (m_decoder) {
|
| m_decoder->setData(data.release(), allDataReceived);
|
| - // If the decoder is pre-instantiated, it means we've already validated the data/signature
|
| - // at some point.
|
| + // If the decoder is pre-instantiated, it means we've already validated the
|
| + // data/signature at some point.
|
| return true;
|
| }
|
|
|
| @@ -118,10 +118,10 @@ float ImageSource::frameDurationAtIndex(size_t index) const {
|
| if (!m_decoder)
|
| return 0;
|
|
|
| - // Many annoying ads specify a 0 duration to make an image flash as quickly as possible.
|
| - // 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.
|
| + // Many annoying ads specify a 0 duration to make an image flash as quickly as
|
| + // possible. 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.
|
| const float duration = m_decoder->frameDurationAtIndex(index) / 1000.0f;
|
| if (duration < 0.011f)
|
| return 0.100f;
|
|
|