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 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 // during attribute parsing *before* the normal parser machinery would | 154 // during attribute parsing *before* the normal parser machinery would |
155 // attach the element. To support this, we lazyAttach here, but only | 155 // attach the element. To support this, we lazyAttach here, but only |
156 // if we don't already have a renderer (if we're inserted | 156 // if we don't already have a renderer (if we're inserted |
157 // as part of a DocumentFragment, insertedInto from an earlier element | 157 // as part of a DocumentFragment, insertedInto from an earlier element |
158 // could have forced a style resolve and already attached us). | 158 // could have forced a style resolve and already attached us). |
159 if (!renderer()) | 159 if (!renderer()) |
160 lazyAttach(DoNotSetAttached); | 160 lazyAttach(DoNotSetAttached); |
161 setNameAndOpenURL(); | 161 setNameAndOpenURL(); |
162 } | 162 } |
163 | 163 |
164 void HTMLFrameElementBase::attach() | 164 void HTMLFrameElementBase::attach(const AttachContext& context) |
165 { | 165 { |
166 HTMLFrameOwnerElement::attach(); | 166 HTMLFrameOwnerElement::attach(context); |
167 | 167 |
168 if (RenderPart* part = renderPart()) { | 168 if (RenderPart* part = renderPart()) { |
169 if (Frame* frame = contentFrame()) | 169 if (Frame* frame = contentFrame()) |
170 part->setWidget(frame->view()); | 170 part->setWidget(frame->view()); |
171 } | 171 } |
172 } | 172 } |
173 | 173 |
174 KURL HTMLFrameElementBase::location() const | 174 KURL HTMLFrameElementBase::location() const |
175 { | 175 { |
176 if (fastHasAttribute(srcdocAttr)) | 176 if (fastHasAttribute(srcdocAttr)) |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 | 222 |
223 int HTMLFrameElementBase::height() | 223 int HTMLFrameElementBase::height() |
224 { | 224 { |
225 document()->updateLayoutIgnorePendingStylesheets(); | 225 document()->updateLayoutIgnorePendingStylesheets(); |
226 if (!renderBox()) | 226 if (!renderBox()) |
227 return 0; | 227 return 0; |
228 return renderBox()->height(); | 228 return renderBox()->height(); |
229 } | 229 } |
230 | 230 |
231 } // namespace WebCore | 231 } // namespace WebCore |
OLD | NEW |