| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "core/frame/RemoteFrame.h" | 5 #include "core/frame/RemoteFrame.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/WindowProxy.h" | 7 #include "bindings/core/v8/WindowProxy.h" |
| 8 #include "bindings/core/v8/WindowProxyManager.h" | 8 #include "bindings/core/v8/WindowProxyManager.h" |
| 9 #include "core/dom/RemoteSecurityContext.h" | 9 #include "core/dom/RemoteSecurityContext.h" |
| 10 #include "core/frame/FrameHost.h" | |
| 11 #include "core/frame/LocalFrame.h" | 10 #include "core/frame/LocalFrame.h" |
| 12 #include "core/frame/RemoteDOMWindow.h" | 11 #include "core/frame/RemoteDOMWindow.h" |
| 13 #include "core/frame/RemoteFrameClient.h" | 12 #include "core/frame/RemoteFrameClient.h" |
| 14 #include "core/frame/RemoteFrameView.h" | 13 #include "core/frame/RemoteFrameView.h" |
| 15 #include "core/html/HTMLFrameOwnerElement.h" | 14 #include "core/html/HTMLFrameOwnerElement.h" |
| 16 #include "core/layout/api/LayoutPartItem.h" | 15 #include "core/layout/api/LayoutPartItem.h" |
| 17 #include "core/loader/FrameLoadRequest.h" | 16 #include "core/loader/FrameLoadRequest.h" |
| 18 #include "core/loader/FrameLoader.h" | 17 #include "core/loader/FrameLoader.h" |
| 19 #include "core/paint/PaintLayer.h" | 18 #include "core/paint/PaintLayer.h" |
| 20 #include "platform/PluginScriptForbiddenScope.h" | 19 #include "platform/PluginScriptForbiddenScope.h" |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 FrameVector childrenToDetach; | 165 FrameVector childrenToDetach; |
| 167 childrenToDetach.reserveCapacity(tree().childCount()); | 166 childrenToDetach.reserveCapacity(tree().childCount()); |
| 168 for (Frame* child = tree().firstChild(); child; | 167 for (Frame* child = tree().firstChild(); child; |
| 169 child = child->tree().nextSibling()) | 168 child = child->tree().nextSibling()) |
| 170 childrenToDetach.push_back(child); | 169 childrenToDetach.push_back(child); |
| 171 for (const auto& child : childrenToDetach) | 170 for (const auto& child : childrenToDetach) |
| 172 child->detach(FrameDetachType::Remove); | 171 child->detach(FrameDetachType::Remove); |
| 173 } | 172 } |
| 174 | 173 |
| 175 } // namespace blink | 174 } // namespace blink |
| OLD | NEW |