OLD | NEW |
1 /* | 1 /* |
2 Copyright (C) 1997 Martin Jones (mjones@kde.org) | 2 Copyright (C) 1997 Martin Jones (mjones@kde.org) |
3 (C) 1998 Waldo Bastian (bastian@kde.org) | 3 (C) 1998 Waldo Bastian (bastian@kde.org) |
4 (C) 1998, 1999 Torben Weis (weis@kde.org) | 4 (C) 1998, 1999 Torben Weis (weis@kde.org) |
5 (C) 1999 Lars Knoll (knoll@kde.org) | 5 (C) 1999 Lars Knoll (knoll@kde.org) |
6 (C) 1999 Antti Koivisto (koivisto@kde.org) | 6 (C) 1999 Antti Koivisto (koivisto@kde.org) |
7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. | 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. |
8 | 8 |
9 This library is free software; you can redistribute it and/or | 9 This library is free software; you can redistribute it and/or |
10 modify it under the terms of the GNU Library General Public | 10 modify it under the terms of the GNU Library General Public |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 virtual ~FrameView(); | 67 virtual ~FrameView(); |
68 | 68 |
69 virtual HostWindow* hostWindow() const; | 69 virtual HostWindow* hostWindow() const; |
70 | 70 |
71 virtual void invalidateRect(const IntRect&); | 71 virtual void invalidateRect(const IntRect&); |
72 virtual void setFrameRect(const IntRect&); | 72 virtual void setFrameRect(const IntRect&); |
73 | 73 |
74 virtual bool scheduleAnimation(); | 74 virtual bool scheduleAnimation(); |
75 | 75 |
76 Frame* frame() const { return m_frame.get(); } | 76 Frame* frame() const { return m_frame.get(); } |
77 void clearFrame(); | |
78 | 77 |
79 RenderView* renderView() const { return m_frame ? m_frame->contentRenderer()
: 0; } | 78 RenderView* renderView() const { return m_frame->contentRenderer(); } |
80 | 79 |
81 int mapFromLayoutToCSSUnits(LayoutUnit); | 80 int mapFromLayoutToCSSUnits(LayoutUnit); |
82 LayoutUnit mapFromCSSToLayoutUnits(int); | 81 LayoutUnit mapFromCSSToLayoutUnits(int); |
83 | 82 |
84 LayoutUnit marginWidth() const { return m_margins.width(); } // -1 means def
ault | 83 LayoutUnit marginWidth() const { return m_margins.width(); } // -1 means def
ault |
85 LayoutUnit marginHeight() const { return m_margins.height(); } // -1 means d
efault | 84 LayoutUnit marginHeight() const { return m_margins.height(); } // -1 means d
efault |
86 void setMarginWidth(LayoutUnit); | 85 void setMarginWidth(LayoutUnit); |
87 void setMarginHeight(LayoutUnit); | 86 void setMarginHeight(LayoutUnit); |
88 | 87 |
89 virtual void setCanHaveScrollbars(bool); | 88 virtual void setCanHaveScrollbars(bool); |
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 ASSERT(!widget || widget->isFrameView()); | 576 ASSERT(!widget || widget->isFrameView()); |
578 return static_cast<const FrameView*>(widget); | 577 return static_cast<const FrameView*>(widget); |
579 } | 578 } |
580 | 579 |
581 // This will catch anyone doing an unnecessary cast. | 580 // This will catch anyone doing an unnecessary cast. |
582 void toFrameView(const FrameView*); | 581 void toFrameView(const FrameView*); |
583 | 582 |
584 } // namespace WebCore | 583 } // namespace WebCore |
585 | 584 |
586 #endif // FrameView_h | 585 #endif // FrameView_h |
OLD | NEW |