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, 2008, 2009 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2006, 2008, 2009 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 24 matching lines...) Expand all Loading... |
35 #include "core/page/FocusController.h" | 35 #include "core/page/FocusController.h" |
36 #include "core/page/Frame.h" | 36 #include "core/page/Frame.h" |
37 #include "core/page/FrameView.h" | 37 #include "core/page/FrameView.h" |
38 #include "core/page/Page.h" | 38 #include "core/page/Page.h" |
39 #include "core/rendering/RenderPart.h" | 39 #include "core/rendering/RenderPart.h" |
40 | 40 |
41 namespace WebCore { | 41 namespace WebCore { |
42 | 42 |
43 using namespace HTMLNames; | 43 using namespace HTMLNames; |
44 | 44 |
45 HTMLFrameElementBase::HTMLFrameElementBase(const QualifiedName& tagName, Documen
t* document) | 45 HTMLFrameElementBase::HTMLFrameElementBase(const QualifiedName& tagName, Documen
t& document) |
46 : HTMLFrameOwnerElement(tagName, document) | 46 : HTMLFrameOwnerElement(tagName, document) |
47 , m_scrolling(ScrollbarAuto) | 47 , m_scrolling(ScrollbarAuto) |
48 , m_marginWidth(-1) | 48 , m_marginWidth(-1) |
49 , m_marginHeight(-1) | 49 , m_marginHeight(-1) |
50 { | 50 { |
51 } | 51 } |
52 | 52 |
53 bool HTMLFrameElementBase::isURLAllowed() const | 53 bool HTMLFrameElementBase::isURLAllowed() const |
54 { | 54 { |
55 if (m_URL.isEmpty()) | 55 if (m_URL.isEmpty()) |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 | 234 |
235 int HTMLFrameElementBase::height() | 235 int HTMLFrameElementBase::height() |
236 { | 236 { |
237 document().updateLayoutIgnorePendingStylesheets(); | 237 document().updateLayoutIgnorePendingStylesheets(); |
238 if (!renderBox()) | 238 if (!renderBox()) |
239 return 0; | 239 return 0; |
240 return renderBox()->height(); | 240 return renderBox()->height(); |
241 } | 241 } |
242 | 242 |
243 } // namespace WebCore | 243 } // namespace WebCore |
OLD | NEW |