Index: third_party/WebKit/Source/core/frame/LocalFrame.cpp |
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp |
index f4a6a65466ab9494f0dacba9795c92f1b89cf16a..e09dab6235fafda78189cbfc19f479a36c558955 100644 |
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp |
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp |
@@ -573,6 +573,18 @@ void LocalFrame::DidChangeVisibilityState() { |
Frame::DidChangeVisibilityState(); |
} |
+void LocalFrame::SetIsInert(bool inert) { |
+ is_inert_ = inert; |
+ for (Frame* child = Tree().FirstChild(); child; |
+ child = child->Tree().NextSibling()) { |
+ if (child->Owner()) { |
+ DCHECK(child->Owner()->IsLocal()); |
+ child->SetIsInert(inert || |
+ ToHTMLFrameOwnerElement(child->Owner())->IsInert()); |
+ } |
+ } |
+} |
+ |
LocalFrame& LocalFrame::LocalFrameRoot() const { |
const LocalFrame* cur_frame = this; |
while (cur_frame && cur_frame->Tree().Parent() && |
@@ -900,6 +912,7 @@ inline LocalFrame::LocalFrame(LocalFrameClient* client, |
page_zoom_factor_(ParentPageZoomFactor(this)), |
text_zoom_factor_(ParentTextZoomFactor(this)), |
in_view_source_mode_(false), |
+ is_inert_(false), |
interface_provider_(interface_provider), |
interface_registry_(interface_registry) { |
if (IsLocalRoot()) { |