| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 HTMLFrameElementBase::parseAttribute(name, value); | 97 HTMLFrameElementBase::parseAttribute(name, value); |
| 98 } | 98 } |
| 99 | 99 |
| 100 bool HTMLIFrameElement::rendererIsNeeded(const NodeRenderingContext& context) | 100 bool HTMLIFrameElement::rendererIsNeeded(const NodeRenderingContext& context) |
| 101 { | 101 { |
| 102 return isURLAllowed() && context.style()->display() != NONE; | 102 return isURLAllowed() && context.style()->display() != NONE; |
| 103 } | 103 } |
| 104 | 104 |
| 105 RenderObject* HTMLIFrameElement::createRenderer(RenderStyle*) | 105 RenderObject* HTMLIFrameElement::createRenderer(RenderStyle*) |
| 106 { | 106 { |
| 107 return new (document()->renderArena()) RenderIFrame(this); | 107 return new RenderIFrame(this); |
| 108 } | 108 } |
| 109 | 109 |
| 110 Node::InsertionNotificationRequest HTMLIFrameElement::insertedInto(ContainerNode
* insertionPoint) | 110 Node::InsertionNotificationRequest HTMLIFrameElement::insertedInto(ContainerNode
* insertionPoint) |
| 111 { | 111 { |
| 112 InsertionNotificationRequest result = HTMLFrameElementBase::insertedInto(ins
ertionPoint); | 112 InsertionNotificationRequest result = HTMLFrameElementBase::insertedInto(ins
ertionPoint); |
| 113 if (insertionPoint->inDocument() && document()->isHTMLDocument() && !inserti
onPoint->isInShadowTree()) | 113 if (insertionPoint->inDocument() && document()->isHTMLDocument() && !inserti
onPoint->isInShadowTree()) |
| 114 toHTMLDocument(document())->addExtraNamedItem(m_name); | 114 toHTMLDocument(document())->addExtraNamedItem(m_name); |
| 115 return result; | 115 return result; |
| 116 } | 116 } |
| 117 | 117 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 130 void HTMLIFrameElement::didRecalcStyle(StyleChange styleChange) | 130 void HTMLIFrameElement::didRecalcStyle(StyleChange styleChange) |
| 131 { | 131 { |
| 132 if (!shouldDisplaySeamlessly()) | 132 if (!shouldDisplaySeamlessly()) |
| 133 return; | 133 return; |
| 134 Document* childDocument = contentDocument(); | 134 Document* childDocument = contentDocument(); |
| 135 if (shouldRecalcStyle(styleChange, childDocument)) | 135 if (shouldRecalcStyle(styleChange, childDocument)) |
| 136 contentDocument()->recalcStyle(styleChange); | 136 contentDocument()->recalcStyle(styleChange); |
| 137 } | 137 } |
| 138 | 138 |
| 139 } | 139 } |
| OLD | NEW |