| 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 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 #include "config.h" | 24 #include "config.h" |
| 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" | |
| 34 #include "core/frame/LocalFrame.h" | 33 #include "core/frame/LocalFrame.h" |
| 35 #include "core/html/HTMLCollection.h" | 34 #include "core/html/HTMLCollection.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/rendering/RenderFrameSet.h" | 37 #include "core/rendering/RenderFrameSet.h" |
| 39 | 38 |
| 40 namespace WebCore { | 39 namespace WebCore { |
| 41 | 40 |
| 42 using namespace HTMLNames; | 41 using namespace HTMLNames; |
| 43 | 42 |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 Element* frameElement = children()->namedItem(name); | 221 Element* frameElement = children()->namedItem(name); |
| 223 if (!isHTMLFrameElement(frameElement)) | 222 if (!isHTMLFrameElement(frameElement)) |
| 224 return 0; | 223 return 0; |
| 225 Document* document = toHTMLFrameElement(frameElement)->contentDocument(); | 224 Document* document = toHTMLFrameElement(frameElement)->contentDocument(); |
| 226 if (!document || !document->frame()) | 225 if (!document || !document->frame()) |
| 227 return 0; | 226 return 0; |
| 228 return document->domWindow(); | 227 return document->domWindow(); |
| 229 } | 228 } |
| 230 | 229 |
| 231 } // namespace WebCore | 230 } // namespace WebCore |
| OLD | NEW |