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, 2009, 2010 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2006, 2009, 2010 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 return; | 193 return; |
194 } | 194 } |
195 } | 195 } |
196 HTMLElement::defaultEventHandler(evt); | 196 HTMLElement::defaultEventHandler(evt); |
197 } | 197 } |
198 | 198 |
199 Node::InsertionNotificationRequest HTMLFrameSetElement::insertedInto(ContainerNo
de* insertionPoint) | 199 Node::InsertionNotificationRequest HTMLFrameSetElement::insertedInto(ContainerNo
de* insertionPoint) |
200 { | 200 { |
201 if (insertionPoint->inDocument() && document().frame()) { | 201 if (insertionPoint->inDocument() && document().frame()) { |
202 // A document using <frameset> likely won't literally have a body, but a
s far as the client is concerned, the frameset is effectively the body. | 202 // A document using <frameset> likely won't literally have a body, but a
s far as the client is concerned, the frameset is effectively the body. |
203 document().frame()->loader()->client()->dispatchWillInsertBody(); | 203 document().frame()->loader().client()->dispatchWillInsertBody(); |
204 } | 204 } |
205 return HTMLElement::insertedInto(insertionPoint); | 205 return HTMLElement::insertedInto(insertionPoint); |
206 } | 206 } |
207 | 207 |
208 void HTMLFrameSetElement::willRecalcStyle(StyleRecalcChange) | 208 void HTMLFrameSetElement::willRecalcStyle(StyleRecalcChange) |
209 { | 209 { |
210 if (needsStyleRecalc() && renderer()) { | 210 if (needsStyleRecalc() && renderer()) { |
211 renderer()->setNeedsLayout(); | 211 renderer()->setNeedsLayout(); |
212 clearNeedsStyleRecalc(); | 212 clearNeedsStyleRecalc(); |
213 } | 213 } |
214 } | 214 } |
215 | 215 |
216 DOMWindow* HTMLFrameSetElement::anonymousNamedGetter(const AtomicString& name) | 216 DOMWindow* HTMLFrameSetElement::anonymousNamedGetter(const AtomicString& name) |
217 { | 217 { |
218 Node* frameNode = children()->namedItem(name); | 218 Node* frameNode = children()->namedItem(name); |
219 if (!frameNode || !frameNode->hasTagName(HTMLNames::frameTag)) | 219 if (!frameNode || !frameNode->hasTagName(HTMLNames::frameTag)) |
220 return 0; | 220 return 0; |
221 Document* document = toHTMLFrameElement(frameNode)->contentDocument(); | 221 Document* document = toHTMLFrameElement(frameNode)->contentDocument(); |
222 if (!document || !document->frame()) | 222 if (!document || !document->frame()) |
223 return 0; | 223 return 0; |
224 return document->domWindow(); | 224 return document->domWindow(); |
225 } | 225 } |
226 | 226 |
227 } // namespace WebCore | 227 } // namespace WebCore |
OLD | NEW |