summaryrefslogtreecommitdiffstats
path: root/WebCore/html/HTMLFrameOwnerElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/HTMLFrameOwnerElement.cpp')
-rw-r--r--WebCore/html/HTMLFrameOwnerElement.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/WebCore/html/HTMLFrameOwnerElement.cpp b/WebCore/html/HTMLFrameOwnerElement.cpp
index 84958c2..7598da2 100644
--- a/WebCore/html/HTMLFrameOwnerElement.cpp
+++ b/WebCore/html/HTMLFrameOwnerElement.cpp
@@ -35,6 +35,7 @@ namespace WebCore {
HTMLFrameOwnerElement::HTMLFrameOwnerElement(const QualifiedName& tagName, Document* document)
: HTMLElement(tagName, document, CreateElement)
, m_contentFrame(0)
+ , m_sandboxFlags(SandboxNone)
{
}
@@ -64,6 +65,17 @@ DOMWindow* HTMLFrameOwnerElement::contentWindow() const
return m_contentFrame ? m_contentFrame->domWindow() : 0;
}
+void HTMLFrameOwnerElement::setSandboxFlags(SandboxFlags flags)
+{
+ if (m_sandboxFlags == flags)
+ return;
+
+ m_sandboxFlags = flags;
+
+ if (Frame* frame = contentFrame())
+ frame->loader()->ownerElementSandboxFlagsChanged();
+}
+
#if ENABLE(SVG)
SVGDocument* HTMLFrameOwnerElement::getSVGDocument(ExceptionCode& ec) const
{