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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 m_frameName = getNameAttribute(); | 150 m_frameName = getNameAttribute(); |
151 if (m_frameName.isNull()) | 151 if (m_frameName.isNull()) |
152 m_frameName = getIdAttribute(); | 152 m_frameName = getIdAttribute(); |
153 openURL(); | 153 openURL(); |
154 } | 154 } |
155 | 155 |
156 Node::InsertionNotificationRequest HTMLFrameElementBase::insertedInto(ContainerN
ode* insertionPoint) | 156 Node::InsertionNotificationRequest HTMLFrameElementBase::insertedInto(ContainerN
ode* insertionPoint) |
157 { | 157 { |
158 HTMLFrameOwnerElement::insertedInto(insertionPoint); | 158 HTMLFrameOwnerElement::insertedInto(insertionPoint); |
159 if (insertionPoint->inDocument()) | 159 if (insertionPoint->inDocument()) |
160 return InsertionShouldCallDidNotifyDescendantInsertions; | 160 return InsertionShouldCallDidNotifySubtreeInsertions; |
161 return InsertionDone; | 161 return InsertionDone; |
162 } | 162 } |
163 | 163 |
164 void HTMLFrameElementBase::didNotifyDescendantInsertions(ContainerNode* insertio
nPoint) | 164 void HTMLFrameElementBase::didNotifySubtreeInsertions(ContainerNode* insertionPo
int) |
165 { | 165 { |
166 ASSERT_UNUSED(insertionPoint, insertionPoint->inDocument()); | 166 ASSERT_UNUSED(insertionPoint, insertionPoint->inDocument()); |
167 | 167 |
168 // DocumentFragments don't kick of any loads. | 168 // DocumentFragments don't kick of any loads. |
169 if (!document()->frame()) | 169 if (!document()->frame()) |
170 return; | 170 return; |
171 | 171 |
172 // JavaScript in src=javascript: and beforeonload can access the renderer | 172 // JavaScript in src=javascript: and beforeonload can access the renderer |
173 // during attribute parsing *before* the normal parser machinery would | 173 // during attribute parsing *before* the normal parser machinery would |
174 // attach the element. To support this, we lazyAttach here, but only | 174 // attach the element. To support this, we lazyAttach here, but only |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 | 240 |
241 int HTMLFrameElementBase::height() | 241 int HTMLFrameElementBase::height() |
242 { | 242 { |
243 document()->updateLayoutIgnorePendingStylesheets(); | 243 document()->updateLayoutIgnorePendingStylesheets(); |
244 if (!renderBox()) | 244 if (!renderBox()) |
245 return 0; | 245 return 0; |
246 return renderBox()->height(); | 246 return renderBox()->height(); |
247 } | 247 } |
248 | 248 |
249 } // namespace WebCore | 249 } // namespace WebCore |
OLD | NEW |