| 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 renderer()->setNeedsLayout(true); | 212 renderer()->setNeedsLayout(true); |
| 213 clearNeedsStyleRecalc(); | 213 clearNeedsStyleRecalc(); |
| 214 } | 214 } |
| 215 } | 215 } |
| 216 | 216 |
| 217 DOMWindow* HTMLFrameSetElement::anonymousNamedGetter(const AtomicString& name) | 217 DOMWindow* HTMLFrameSetElement::anonymousNamedGetter(const AtomicString& name) |
| 218 { | 218 { |
| 219 Node* frameNode = children()->namedItem(name); | 219 Node* frameNode = children()->namedItem(name); |
| 220 if (!frameNode || !frameNode->hasTagName(HTMLNames::frameTag)) | 220 if (!frameNode || !frameNode->hasTagName(HTMLNames::frameTag)) |
| 221 return 0; | 221 return 0; |
| 222 Document* document = static_cast<HTMLFrameElement*>(frameNode)->contentDocum
ent(); | 222 Document* document = toHTMLFrameElement(frameNode)->contentDocument(); |
| 223 if (!document || !document->frame()) | 223 if (!document || !document->frame()) |
| 224 return 0; | 224 return 0; |
| 225 return document->domWindow(); | 225 return document->domWindow(); |
| 226 } | 226 } |
| 227 | 227 |
| 228 } // namespace WebCore | 228 } // namespace WebCore |
| OLD | NEW |