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 b03a004b0c5f0b28b6b1487a833332c2c9aa8c84..59e04dfa6f737d124581887f06d7e4da046c0798 100644 |
--- a/third_party/WebKit/Source/core/frame/RemoteFrame.cpp |
+++ b/third_party/WebKit/Source/core/frame/RemoteFrame.cpp |
@@ -29,7 +29,8 @@ inline RemoteFrame::RemoteFrame(RemoteFrameClient* client, |
Page& page, |
FrameOwner* owner) |
: Frame(client, page, owner, RemoteWindowProxyManager::Create(*this)), |
- security_context_(RemoteSecurityContext::Create()) { |
+ security_context_(RemoteSecurityContext::Create()), |
+ last_inert_state_(false) { |
dom_window_ = RemoteDOMWindow::Create(*this); |
} |
@@ -121,6 +122,12 @@ bool RemoteFrame::ShouldClose() { |
return true; |
} |
+void RemoteFrame::SetIsInert(bool inert) { |
+ if (inert != last_inert_state_) |
+ Client()->SetIsInert(inert); |
+ last_inert_state_ = inert; |
+} |
+ |
void RemoteFrame::SetView(RemoteFrameView* view) { |
// Oilpan: as RemoteFrameView performs no finalization actions, |
// no explicit dispose() of it needed here. (cf. FrameView::dispose().) |