Index: content/browser/frame_host/frame_tree_node.h |
diff --git a/content/browser/frame_host/frame_tree_node.h b/content/browser/frame_host/frame_tree_node.h |
index 7a4a0b9e20425f5b7d359840ccbc2d57f2dffbfc..4c0413854a31264530d7f8bfe2ddaa4d72599cdb 100644 |
--- a/content/browser/frame_host/frame_tree_node.h |
+++ b/content/browser/frame_host/frame_tree_node.h |
@@ -145,6 +145,15 @@ class CONTENT_EXPORT FrameTreeNode { |
return has_committed_real_load_; |
} |
+ // Returns whether the frame's owner element in the parent frame is collapsed |
+ // as per request by the client, i.e. it should not appear in the layout. |
+ bool is_frame_owner_collapsed() const { return is_frame_owner_collapsed_; } |
+ |
+ // Sets whether to collapse, i.e. exclude from the layout, the frame's owner |
+ // element in the parent frame. Not applicable to main frames, and will have |
+ // no effect unless the child frame is embedded using an <iframe> element. |
+ void SetFrameOwnerCollapsedState(bool collapsed); |
+ |
// Returns the origin of the last committed page in this frame. |
// WARNING: To get the last committed origin for a particular |
// RenderFrameHost, use RenderFrameHost::GetLastCommittedOrigin() instead, |
@@ -363,6 +372,11 @@ class CONTENT_EXPORT FrameTreeNode { |
// about:blank page. |
bool has_committed_real_load_; |
+ // Whether the frame's owner element in the parent frame is collapsed, i.e. it |
+ // does not appear in the layout. Always false for main frames, and has have |
+ // no effect unless the child frame is embedded using an <iframe> element. |
+ bool is_frame_owner_collapsed_; |
+ |
// Track information that needs to be replicated to processes that have |
// proxies for this frame. |
FrameReplicationState replication_state_; |