Chromium Code Reviews| 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 16 matching lines...) Expand all Loading... | |
| 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/dom/Event.h" | 31 #include "core/dom/Event.h" |
| 32 #include "core/dom/EventNames.h" | 32 #include "core/dom/EventNames.h" |
| 33 #include "core/dom/MouseEvent.h" | 33 #include "core/dom/MouseEvent.h" |
| 34 #include "core/dom/NodeRenderingContext.h" | 34 #include "core/dom/NodeRenderingContext.h" |
| 35 #include "core/html/HTMLCollection.h" | 35 #include "core/html/HTMLCollection.h" |
| 36 #include "core/html/HTMLFrameElement.h" | 36 #include "core/html/HTMLFrameElement.h" |
| 37 #include "core/loader/FrameLoaderClient.h" | |
| 38 #include "core/page/Frame.h" | |
| 37 #include "core/platform/Length.h" | 39 #include "core/platform/Length.h" |
| 38 #include "core/rendering/RenderFrameSet.h" | 40 #include "core/rendering/RenderFrameSet.h" |
| 39 | 41 |
| 40 namespace WebCore { | 42 namespace WebCore { |
| 41 | 43 |
| 42 using namespace HTMLNames; | 44 using namespace HTMLNames; |
| 43 | 45 |
| 44 HTMLFrameSetElement::HTMLFrameSetElement(const QualifiedName& tagName, Document* document) | 46 HTMLFrameSetElement::HTMLFrameSetElement(const QualifiedName& tagName, Document* document) |
| 45 : HTMLElement(tagName, document) | 47 : HTMLElement(tagName, document) |
| 46 , m_totalRows(1) | 48 , m_totalRows(1) |
| 47 , m_totalCols(1) | 49 , m_totalCols(1) |
| 48 , m_border(6) | 50 , m_border(6) |
| 49 , m_borderSet(false) | 51 , m_borderSet(false) |
| 50 , m_borderColorSet(false) | 52 , m_borderColorSet(false) |
| 51 , m_frameborder(true) | 53 , m_frameborder(true) |
| 52 , m_frameborderSet(false) | 54 , m_frameborderSet(false) |
| 53 , m_noresize(false) | 55 , m_noresize(false) |
| 54 { | 56 { |
| 55 ASSERT(hasTagName(framesetTag)); | 57 ASSERT(hasTagName(framesetTag)); |
| 56 ScriptWrappable::init(this); | 58 ScriptWrappable::init(this); |
| 57 setHasCustomStyleCallbacks(); | 59 setHasCustomStyleCallbacks(); |
| 60 document->frame()->loader()->client()->dispatchWillInsertBody(); | |
|
abarth-chromium
2013/06/03 22:46:48
Should we wait for the HTMLFrameSetElement to be i
| |
| 58 } | 61 } |
| 59 | 62 |
| 60 PassRefPtr<HTMLFrameSetElement> HTMLFrameSetElement::create(const QualifiedName& tagName, Document* document) | 63 PassRefPtr<HTMLFrameSetElement> HTMLFrameSetElement::create(const QualifiedName& tagName, Document* document) |
| 61 { | 64 { |
| 62 return adoptRef(new HTMLFrameSetElement(tagName, document)); | 65 return adoptRef(new HTMLFrameSetElement(tagName, document)); |
| 63 } | 66 } |
| 64 | 67 |
| 65 bool HTMLFrameSetElement::isPresentationAttribute(const QualifiedName& name) con st | 68 bool HTMLFrameSetElement::isPresentationAttribute(const QualifiedName& name) con st |
| 66 { | 69 { |
| 67 if (name == bordercolorAttr) | 70 if (name == bordercolorAttr) |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 210 Node* frameNode = children()->namedItem(name); | 213 Node* frameNode = children()->namedItem(name); |
| 211 if (!frameNode || !frameNode->hasTagName(HTMLNames::frameTag)) | 214 if (!frameNode || !frameNode->hasTagName(HTMLNames::frameTag)) |
| 212 return 0; | 215 return 0; |
| 213 Document* document = static_cast<HTMLFrameElement*>(frameNode)->contentDocum ent(); | 216 Document* document = static_cast<HTMLFrameElement*>(frameNode)->contentDocum ent(); |
| 214 if (!document || !document->frame()) | 217 if (!document || !document->frame()) |
| 215 return 0; | 218 return 0; |
| 216 return document->domWindow(); | 219 return document->domWindow(); |
| 217 } | 220 } |
| 218 | 221 |
| 219 } // namespace WebCore | 222 } // namespace WebCore |
| OLD | NEW |