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 16 matching lines...) Expand all Loading... |
27 | 27 |
28 #include "CSSPropertyNames.h" | 28 #include "CSSPropertyNames.h" |
29 #include "HTMLNames.h" | 29 #include "HTMLNames.h" |
30 #include "core/html/HTMLDocument.h" | 30 #include "core/html/HTMLDocument.h" |
31 #include "core/rendering/RenderIFrame.h" | 31 #include "core/rendering/RenderIFrame.h" |
32 | 32 |
33 namespace WebCore { | 33 namespace WebCore { |
34 | 34 |
35 using namespace HTMLNames; | 35 using namespace HTMLNames; |
36 | 36 |
37 inline HTMLIFrameElement::HTMLIFrameElement(const QualifiedName& tagName, Docume
nt& document) | 37 inline HTMLIFrameElement::HTMLIFrameElement(Document& document) |
38 : HTMLFrameElementBase(tagName, document) | 38 : HTMLFrameElementBase(iframeTag, document) |
39 , m_didLoadNonEmptyDocument(false) | 39 , m_didLoadNonEmptyDocument(false) |
40 { | 40 { |
41 ASSERT(hasTagName(iframeTag)); | |
42 ScriptWrappable::init(this); | 41 ScriptWrappable::init(this); |
43 setHasCustomStyleCallbacks(); | 42 setHasCustomStyleCallbacks(); |
44 } | 43 } |
45 | 44 |
46 PassRefPtr<HTMLIFrameElement> HTMLIFrameElement::create(const QualifiedName& tag
Name, Document& document) | 45 PassRefPtr<HTMLIFrameElement> HTMLIFrameElement::create(Document& document) |
47 { | 46 { |
48 return adoptRef(new HTMLIFrameElement(tagName, document)); | 47 return adoptRef(new HTMLIFrameElement(document)); |
49 } | 48 } |
50 | 49 |
51 bool HTMLIFrameElement::isPresentationAttribute(const QualifiedName& name) const | 50 bool HTMLIFrameElement::isPresentationAttribute(const QualifiedName& name) const |
52 { | 51 { |
53 if (name == widthAttr || name == heightAttr || name == alignAttr || name ==
frameborderAttr || name == seamlessAttr) | 52 if (name == widthAttr || name == heightAttr || name == alignAttr || name ==
frameborderAttr || name == seamlessAttr) |
54 return true; | 53 return true; |
55 return HTMLFrameElementBase::isPresentationAttribute(name); | 54 return HTMLFrameElementBase::isPresentationAttribute(name); |
56 } | 55 } |
57 | 56 |
58 void HTMLIFrameElement::collectStyleForPresentationAttribute(const QualifiedName
& name, const AtomicString& value, MutableStylePropertySet* style) | 57 void HTMLIFrameElement::collectStyleForPresentationAttribute(const QualifiedName
& name, const AtomicString& value, MutableStylePropertySet* style) |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 if (shouldRecalcStyle(styleChange, childDocument)) | 133 if (shouldRecalcStyle(styleChange, childDocument)) |
135 contentDocument()->recalcStyle(styleChange); | 134 contentDocument()->recalcStyle(styleChange); |
136 } | 135 } |
137 | 136 |
138 bool HTMLIFrameElement::isInteractiveContent() const | 137 bool HTMLIFrameElement::isInteractiveContent() const |
139 { | 138 { |
140 return true; | 139 return true; |
141 } | 140 } |
142 | 141 |
143 } | 142 } |
OLD | NEW |