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