OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Simon Hausmann (hausmann@kde.org) | 4 * (C) 2000 Simon Hausmann (hausmann@kde.org) |
5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
6 * Copyright (C) 2004, 2006, 2008, 2009 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2006, 2008, 2009 Apple Inc. All rights reserved. |
7 * Copyright (C) 2009 Ericsson AB. All rights reserved. | 7 * Copyright (C) 2009 Ericsson AB. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 | 127 |
128 Node::InsertionNotificationRequest HTMLIFrameElement::insertedInto(ContainerNode
* insertionPoint) | 128 Node::InsertionNotificationRequest HTMLIFrameElement::insertedInto(ContainerNode
* insertionPoint) |
129 { | 129 { |
130 InsertionNotificationRequest result = HTMLFrameElementBase::insertedInto(ins
ertionPoint); | 130 InsertionNotificationRequest result = HTMLFrameElementBase::insertedInto(ins
ertionPoint); |
131 if (insertionPoint->inDocument() && document().isHTMLDocument() && !insertio
nPoint->isInShadowTree()) | 131 if (insertionPoint->inDocument() && document().isHTMLDocument() && !insertio
nPoint->isInShadowTree()) |
132 toHTMLDocument(document()).addExtraNamedItem(m_name); | 132 toHTMLDocument(document()).addExtraNamedItem(m_name); |
133 logEventIfIsolatedWorldAndInDocument("blinkAddElement", "iframe", fastGetAtt
ribute(srcAttr)); | 133 logEventIfIsolatedWorldAndInDocument("blinkAddElement", "iframe", fastGetAtt
ribute(srcAttr)); |
134 return result; | 134 return result; |
135 } | 135 } |
136 | 136 |
137 void HTMLIFrameElement::removedFrom(ContainerNode* insertionPoint) | 137 void HTMLIFrameElement::removedFrom(ContainerNode* insertionPoint, Node* next) |
138 { | 138 { |
139 HTMLFrameElementBase::removedFrom(insertionPoint); | 139 HTMLFrameElementBase::removedFrom(insertionPoint, next); |
140 if (insertionPoint->inDocument() && document().isHTMLDocument() && !insertio
nPoint->isInShadowTree()) | 140 if (insertionPoint->inDocument() && document().isHTMLDocument() && !insertio
nPoint->isInShadowTree()) |
141 toHTMLDocument(document()).removeExtraNamedItem(m_name); | 141 toHTMLDocument(document()).removeExtraNamedItem(m_name); |
142 } | 142 } |
143 | 143 |
144 bool HTMLIFrameElement::isInteractiveContent() const | 144 bool HTMLIFrameElement::isInteractiveContent() const |
145 { | 145 { |
146 return true; | 146 return true; |
147 } | 147 } |
148 | 148 |
149 void HTMLIFrameElement::valueWasSet() | 149 void HTMLIFrameElement::valueWasSet() |
150 { | 150 { |
151 String invalidTokens; | 151 String invalidTokens; |
152 setSandboxFlags(m_sandbox->value().isNull() ? SandboxNone : parseSandboxPoli
cy(m_sandbox->tokens(), invalidTokens)); | 152 setSandboxFlags(m_sandbox->value().isNull() ? SandboxNone : parseSandboxPoli
cy(m_sandbox->tokens(), invalidTokens)); |
153 if (!invalidTokens.isNull()) | 153 if (!invalidTokens.isNull()) |
154 document().addConsoleMessage(ConsoleMessage::create(OtherMessageSource,
ErrorMessageLevel, "Error while parsing the 'sandbox' attribute: " + invalidToke
ns)); | 154 document().addConsoleMessage(ConsoleMessage::create(OtherMessageSource,
ErrorMessageLevel, "Error while parsing the 'sandbox' attribute: " + invalidToke
ns)); |
155 setSynchronizedLazyAttribute(sandboxAttr, m_sandbox->value()); | 155 setSynchronizedLazyAttribute(sandboxAttr, m_sandbox->value()); |
156 } | 156 } |
157 | 157 |
158 ReferrerPolicy HTMLIFrameElement::referrerPolicyAttribute() | 158 ReferrerPolicy HTMLIFrameElement::referrerPolicyAttribute() |
159 { | 159 { |
160 return m_referrerPolicy; | 160 return m_referrerPolicy; |
161 } | 161 } |
162 } | 162 } |
OLD | NEW |