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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 inline HTMLFrameSetElement::HTMLFrameSetElement(Document& document) | 43 inline HTMLFrameSetElement::HTMLFrameSetElement(Document& document) |
44 : HTMLElement(framesetTag, document) | 44 : HTMLElement(framesetTag, document) |
45 , m_border(6) | 45 , m_border(6) |
46 , m_borderSet(false) | 46 , m_borderSet(false) |
47 , m_borderColorSet(false) | 47 , m_borderColorSet(false) |
48 , m_frameborder(true) | 48 , m_frameborder(true) |
49 , m_frameborderSet(false) | 49 , m_frameborderSet(false) |
50 , m_noresize(false) | 50 , m_noresize(false) |
51 { | 51 { |
52 ScriptWrappable::init(this); | |
53 setHasCustomStyleCallbacks(); | 52 setHasCustomStyleCallbacks(); |
54 } | 53 } |
55 | 54 |
56 DEFINE_NODE_FACTORY(HTMLFrameSetElement) | 55 DEFINE_NODE_FACTORY(HTMLFrameSetElement) |
57 | 56 |
58 bool HTMLFrameSetElement::isPresentationAttribute(const QualifiedName& name) con
st | 57 bool HTMLFrameSetElement::isPresentationAttribute(const QualifiedName& name) con
st |
59 { | 58 { |
60 if (name == bordercolorAttr) | 59 if (name == bordercolorAttr) |
61 return true; | 60 return true; |
62 return HTMLElement::isPresentationAttribute(name); | 61 return HTMLElement::isPresentationAttribute(name); |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 Element* frameElement = children()->namedItem(name); | 215 Element* frameElement = children()->namedItem(name); |
217 if (!isHTMLFrameElement(frameElement)) | 216 if (!isHTMLFrameElement(frameElement)) |
218 return 0; | 217 return 0; |
219 Document* document = toHTMLFrameElement(frameElement)->contentDocument(); | 218 Document* document = toHTMLFrameElement(frameElement)->contentDocument(); |
220 if (!document || !document->frame()) | 219 if (!document || !document->frame()) |
221 return 0; | 220 return 0; |
222 return document->domWindow(); | 221 return document->domWindow(); |
223 } | 222 } |
224 | 223 |
225 } // namespace blink | 224 } // namespace blink |
OLD | NEW |