| 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 void HTMLFrameSetElement::willRecalcStyle(StyleRecalcChange) | 212 void HTMLFrameSetElement::willRecalcStyle(StyleRecalcChange) |
| 213 { | 213 { |
| 214 if (needsStyleRecalc() && renderer()) { | 214 if (needsStyleRecalc() && renderer()) { |
| 215 renderer()->setNeedsLayout(); | 215 renderer()->setNeedsLayout(); |
| 216 clearNeedsStyleRecalc(); | 216 clearNeedsStyleRecalc(); |
| 217 } | 217 } |
| 218 } | 218 } |
| 219 | 219 |
| 220 DOMWindow* HTMLFrameSetElement::anonymousNamedGetter(const AtomicString& name) | 220 DOMWindow* HTMLFrameSetElement::anonymousNamedGetter(const AtomicString& name) |
| 221 { | 221 { |
| 222 Node* frameNode = children()->namedItem(name); | 222 Element* frameElement = children()->namedItem(name); |
| 223 if (!frameNode || !frameNode->hasTagName(HTMLNames::frameTag)) | 223 if (!frameElement || !frameElement->hasTagName(HTMLNames::frameTag)) |
| 224 return 0; | 224 return 0; |
| 225 Document* document = toHTMLFrameElement(frameNode)->contentDocument(); | 225 Document* document = toHTMLFrameElement(frameElement)->contentDocument(); |
| 226 if (!document || !document->frame()) | 226 if (!document || !document->frame()) |
| 227 return 0; | 227 return 0; |
| 228 return document->domWindow(); | 228 return document->domWindow(); |
| 229 } | 229 } |
| 230 | 230 |
| 231 } // namespace WebCore | 231 } // namespace WebCore |
| OLD | NEW |