Index: third_party/WebKit/Source/core/frame/RemoteFrame.cpp |
diff --git a/third_party/WebKit/Source/core/frame/RemoteFrame.cpp b/third_party/WebKit/Source/core/frame/RemoteFrame.cpp |
index ad1b727e0702f82e8f5f18dfdf36a2858c921183..6fdfbd3871d54084cd9101cbbf571aa8e78814f1 100644 |
--- a/third_party/WebKit/Source/core/frame/RemoteFrame.cpp |
+++ b/third_party/WebKit/Source/core/frame/RemoteFrame.cpp |
@@ -31,6 +31,7 @@ inline RemoteFrame::RemoteFrame(RemoteFrameClient* client, |
: Frame(client, page, owner, RemoteWindowProxyManager::Create(*this)), |
security_context_(RemoteSecurityContext::Create()) { |
dom_window_ = RemoteDOMWindow::Create(*this); |
+ UpdateInertIfPossible(); |
} |
RemoteFrame* RemoteFrame::Create(RemoteFrameClient* client, |
@@ -121,6 +122,12 @@ bool RemoteFrame::ShouldClose() { |
return true; |
} |
+void RemoteFrame::SetIsInert(bool inert) { |
+ if (inert != is_inert_) |
+ Client()->SetIsInert(inert); |
+ is_inert_ = inert; |
+} |
+ |
void RemoteFrame::SetView(RemoteFrameView* view) { |
// Oilpan: as RemoteFrameView performs no finalization actions, |
// no explicit Dispose() of it needed here. (cf. LocalFrameView::Dispose().) |