| Index: Source/core/html/HTMLFrameOwnerElement.cpp
|
| diff --git a/Source/core/html/HTMLFrameOwnerElement.cpp b/Source/core/html/HTMLFrameOwnerElement.cpp
|
| index 29e31eca22117163abe05319a48612fe0200a89f..d26ebf0b659ff8873ba60fc8662d503c4823c29c 100644
|
| --- a/Source/core/html/HTMLFrameOwnerElement.cpp
|
| +++ b/Source/core/html/HTMLFrameOwnerElement.cpp
|
| @@ -62,11 +62,10 @@ void HTMLFrameOwnerElement::UpdateSuspendScope::performDeferredWidgetTreeOperati
|
| {
|
| WidgetToParentMap map;
|
| widgetNewParentMap().swap(map);
|
| - WidgetToParentMap::iterator end = map.end();
|
| - for (WidgetToParentMap::iterator it = map.begin(); it != end; ++it) {
|
| - Widget* child = it->key.get();
|
| + for (const auto& widget : map) {
|
| + Widget* child = widget.key.get();
|
| FrameView* currentParent = toFrameView(child->parent());
|
| - FrameView* newParent = it->value;
|
| + FrameView* newParent = widget.value;
|
| if (newParent != currentParent) {
|
| if (currentParent)
|
| currentParent->removeChild(child);
|
|
|