| 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 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 using namespace HTMLNames; | 35 using namespace HTMLNames; |
| 36 | 36 |
| 37 inline HTMLIFrameElement::HTMLIFrameElement(Document& document) | 37 inline HTMLIFrameElement::HTMLIFrameElement(Document& document) |
| 38 : HTMLFrameElementBase(iframeTag, document) | 38 : HTMLFrameElementBase(iframeTag, document) |
| 39 , m_didLoadNonEmptyDocument(false) | 39 , m_didLoadNonEmptyDocument(false) |
| 40 { | 40 { |
| 41 ScriptWrappable::init(this); | 41 ScriptWrappable::init(this); |
| 42 } | 42 } |
| 43 | 43 |
| 44 PassRefPtrWillBeRawPtr<HTMLIFrameElement> HTMLIFrameElement::create(Document& do
cument) | 44 DEFINE_NODE_FACTORY(HTMLIFrameElement) |
| 45 { | |
| 46 return adoptRefWillBeRefCountedGarbageCollected(new HTMLIFrameElement(docume
nt)); | |
| 47 } | |
| 48 | 45 |
| 49 bool HTMLIFrameElement::isPresentationAttribute(const QualifiedName& name) const | 46 bool HTMLIFrameElement::isPresentationAttribute(const QualifiedName& name) const |
| 50 { | 47 { |
| 51 if (name == widthAttr || name == heightAttr || name == alignAttr || name ==
frameborderAttr) | 48 if (name == widthAttr || name == heightAttr || name == alignAttr || name ==
frameborderAttr) |
| 52 return true; | 49 return true; |
| 53 return HTMLFrameElementBase::isPresentationAttribute(name); | 50 return HTMLFrameElementBase::isPresentationAttribute(name); |
| 54 } | 51 } |
| 55 | 52 |
| 56 void HTMLIFrameElement::collectStyleForPresentationAttribute(const QualifiedName
& name, const AtomicString& value, MutableStylePropertySet* style) | 53 void HTMLIFrameElement::collectStyleForPresentationAttribute(const QualifiedName
& name, const AtomicString& value, MutableStylePropertySet* style) |
| 57 { | 54 { |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 if (insertionPoint->inDocument() && document().isHTMLDocument() && !insertio
nPoint->isInShadowTree()) | 112 if (insertionPoint->inDocument() && document().isHTMLDocument() && !insertio
nPoint->isInShadowTree()) |
| 116 toHTMLDocument(document()).removeExtraNamedItem(m_name); | 113 toHTMLDocument(document()).removeExtraNamedItem(m_name); |
| 117 } | 114 } |
| 118 | 115 |
| 119 bool HTMLIFrameElement::isInteractiveContent() const | 116 bool HTMLIFrameElement::isInteractiveContent() const |
| 120 { | 117 { |
| 121 return true; | 118 return true; |
| 122 } | 119 } |
| 123 | 120 |
| 124 } | 121 } |
| OLD | NEW |