Index: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
index 9e83b7d3d6bbdf82acd02eb5e5b16fc018e3253c..c68aa97c08930c807b04dd213d6943c3d852df0f 100644 |
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
@@ -646,6 +646,12 @@ bool WebLocalFrameImpl::HasVerticalScrollbar() const { |
GetFrame()->View()->VerticalScrollbar(); |
} |
+void WebLocalFrameImpl::Collapse(bool collapsed) { |
+ DCHECK(GetFrame()->Owner()->IsLocal()); |
+ HTMLFrameOwnerElement* owner = ToHTMLFrameOwnerElement(GetFrame()->Owner()); |
+ owner->SetCollapsedByClient(collapsed); |
+} |
+ |
WebView* WebLocalFrameImpl::View() const { |
return ViewImpl(); |
} |