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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 RenderView* renderView() const; | 78 RenderView* renderView() const; |
79 | 79 |
80 virtual void setCanHaveScrollbars(bool) OVERRIDE; | 80 virtual void setCanHaveScrollbars(bool) OVERRIDE; |
81 | 81 |
82 virtual PassRefPtr<Scrollbar> createScrollbar(ScrollbarOrientation) OVERRIDE
; | 82 virtual PassRefPtr<Scrollbar> createScrollbar(ScrollbarOrientation) OVERRIDE
; |
83 | 83 |
84 virtual void setContentsSize(const IntSize&) OVERRIDE; | 84 virtual void setContentsSize(const IntSize&) OVERRIDE; |
85 | 85 |
86 void layout(bool allowSubtree = true); | 86 void layout(bool allowSubtree = true); |
87 bool didFirstLayout() const; | 87 bool didFirstLayout() const; |
| 88 void layoutTimerFired(Timer<FrameView>*); |
88 void scheduleRelayout(); | 89 void scheduleRelayout(); |
89 void scheduleRelayoutOfSubtree(RenderObject*); | 90 void scheduleRelayoutOfSubtree(RenderObject*); |
90 void unscheduleRelayout(); | 91 void unscheduleRelayout(); |
91 bool layoutPending() const; | 92 bool layoutPending() const; |
92 bool isInPerformLayout() const { return m_inPerformLayout; } | 93 bool isInPerformLayout() const { return m_inPerformLayout; } |
93 | 94 |
94 RenderObject* layoutRoot(bool onlyDuringLayout = false) const; | 95 RenderObject* layoutRoot(bool onlyDuringLayout = false) const; |
95 void clearLayoutSubtreeRoot() { m_layoutSubtreeRoot = 0; } | 96 void clearLayoutSubtreeRoot() { m_layoutSubtreeRoot = 0; } |
96 int layoutCount() const { return m_layoutCount; } | 97 int layoutCount() const { return m_layoutCount; } |
97 | 98 |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 RefPtr<Frame> m_frame; | 426 RefPtr<Frame> m_frame; |
426 | 427 |
427 bool m_doFullRepaint; | 428 bool m_doFullRepaint; |
428 | 429 |
429 bool m_canHaveScrollbars; | 430 bool m_canHaveScrollbars; |
430 bool m_cannotBlitToWindow; | 431 bool m_cannotBlitToWindow; |
431 bool m_isOverlapped; | 432 bool m_isOverlapped; |
432 bool m_contentIsOpaque; | 433 bool m_contentIsOpaque; |
433 unsigned m_slowRepaintObjectCount; | 434 unsigned m_slowRepaintObjectCount; |
434 | 435 |
435 bool m_hasPendingLayout; | 436 Timer<FrameView> m_layoutTimer; |
436 bool m_delayedLayout; | 437 bool m_delayedLayout; |
437 RenderObject* m_layoutSubtreeRoot; | 438 RenderObject* m_layoutSubtreeRoot; |
438 | 439 |
439 bool m_layoutSchedulingEnabled; | 440 bool m_layoutSchedulingEnabled; |
440 bool m_inPerformLayout; | 441 bool m_inPerformLayout; |
441 bool m_doingPreLayoutStyleUpdate; | 442 bool m_doingPreLayoutStyleUpdate; |
442 bool m_inSynchronousPostLayout; | 443 bool m_inSynchronousPostLayout; |
443 int m_layoutCount; | 444 int m_layoutCount; |
444 unsigned m_nestedLayoutCount; | 445 unsigned m_nestedLayoutCount; |
445 Timer<FrameView> m_postLayoutTasksTimer; | 446 Timer<FrameView> m_postLayoutTasksTimer; |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 static const unsigned visualPixelThreshold = 32 * 32; | 534 static const unsigned visualPixelThreshold = 32 * 32; |
534 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) | 535 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) |
535 setIsVisuallyNonEmpty(); | 536 setIsVisuallyNonEmpty(); |
536 } | 537 } |
537 | 538 |
538 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); | 539 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); |
539 | 540 |
540 } // namespace WebCore | 541 } // namespace WebCore |
541 | 542 |
542 #endif // FrameView_h | 543 #endif // FrameView_h |
OLD | NEW |