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 14 matching lines...) Expand all Loading... |
25 #include "core/html/HTMLFrameSetElement.h" | 25 #include "core/html/HTMLFrameSetElement.h" |
26 | 26 |
27 #include "CSSPropertyNames.h" | 27 #include "CSSPropertyNames.h" |
28 #include "HTMLNames.h" | 28 #include "HTMLNames.h" |
29 #include "bindings/v8/ScriptEventListener.h" | 29 #include "bindings/v8/ScriptEventListener.h" |
30 #include "core/dom/Document.h" | 30 #include "core/dom/Document.h" |
31 #include "core/events/Event.h" | 31 #include "core/events/Event.h" |
32 #include "core/events/MouseEvent.h" | 32 #include "core/events/MouseEvent.h" |
33 #include "core/events/ThreadLocalEventNames.h" | 33 #include "core/events/ThreadLocalEventNames.h" |
34 #include "core/html/HTMLCollection.h" | 34 #include "core/html/HTMLCollection.h" |
35 #include "core/html/HTMLDimension.h" | |
36 #include "core/html/HTMLFrameElement.h" | 35 #include "core/html/HTMLFrameElement.h" |
37 #include "core/loader/FrameLoaderClient.h" | 36 #include "core/loader/FrameLoaderClient.h" |
38 #include "core/frame/Frame.h" | 37 #include "core/frame/Frame.h" |
39 #include "core/rendering/RenderFrameSet.h" | 38 #include "core/rendering/RenderFrameSet.h" |
40 | 39 |
41 namespace WebCore { | 40 namespace WebCore { |
42 | 41 |
43 using namespace HTMLNames; | 42 using namespace HTMLNames; |
44 | 43 |
45 HTMLFrameSetElement::HTMLFrameSetElement(Document& document) | 44 HTMLFrameSetElement::HTMLFrameSetElement(Document& document) |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 Node* frameNode = children()->namedItem(name); | 224 Node* frameNode = children()->namedItem(name); |
226 if (!frameNode || !frameNode->hasTagName(HTMLNames::frameTag)) | 225 if (!frameNode || !frameNode->hasTagName(HTMLNames::frameTag)) |
227 return 0; | 226 return 0; |
228 Document* document = toHTMLFrameElement(frameNode)->contentDocument(); | 227 Document* document = toHTMLFrameElement(frameNode)->contentDocument(); |
229 if (!document || !document->frame()) | 228 if (!document || !document->frame()) |
230 return 0; | 229 return 0; |
231 return document->domWindow(); | 230 return document->domWindow(); |
232 } | 231 } |
233 | 232 |
234 } // namespace WebCore | 233 } // namespace WebCore |
OLD | NEW |