Chromium Code Reviews| Index: components/html_viewer/html_document.cc |
| diff --git a/components/html_viewer/html_document.cc b/components/html_viewer/html_document.cc |
| index 4f678954e1683bd86c7e6c070b814e99e598b4de..c36f5d5a5b7c0d09fd4614fed245771fccec26f8 100644 |
| --- a/components/html_viewer/html_document.cc |
| +++ b/components/html_viewer/html_document.cc |
| @@ -1,4 +1,4 @@ |
| -// Copyright 2014 The Chromium Authors. All rights reserved. |
| + |
|
dcheng
2015/06/01 21:41:11
Typo?
lfg
2015/06/01 21:46:04
Oops.
|
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| @@ -255,6 +255,11 @@ blink::WebFrame* HTMLDocument::createChildFrame( |
| } |
| void HTMLDocument::frameDetached(blink::WebFrame* frame) { |
| + frameDetached(frame, DetachType::Remove); |
| +} |
| + |
| +void HTMLDocument::frameDetached(blink::WebFrame* frame, DetachType type) { |
| + DCHECK(type == DetachType::Remove); |
| if (frame->parent()) |
| frame->parent()->removeChild(frame); |