| Index: Source/core/html/canvas/WebGLContextGroup.cpp
|
| diff --git a/Source/core/html/canvas/WebGLContextGroup.cpp b/Source/core/html/canvas/WebGLContextGroup.cpp
|
| index e6e7f0255d6ace15e0e25c2fb3c69aab913d4099..a1fbb66fae472304f07a52f9f52bbe1bf0be7497 100644
|
| --- a/Source/core/html/canvas/WebGLContextGroup.cpp
|
| +++ b/Source/core/html/canvas/WebGLContextGroup.cpp
|
| @@ -91,8 +91,8 @@ void WebGLContextGroup::loseContextGroup(WebGLRenderingContextBase::LostContextM
|
| // and prevents groupObjects from being properly deleted.
|
| detachAndRemoveAllObjects();
|
|
|
| - for (HashSet<WebGLRenderingContextBase*>::iterator it = m_contexts.begin(); it != m_contexts.end(); ++it)
|
| - (*it)->loseContextImpl(mode, autoRecoveryMethod);
|
| + for (const auto& context : m_contexts)
|
| + context->loseContextImpl(mode, autoRecoveryMethod);
|
| }
|
|
|
| } // namespace blink
|
|
|