| 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 | 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights |
| 8 reserved. | 8 reserved. |
| 9 | 9 |
| 10 This library is free software; you can redistribute it and/or | 10 This library is free software; you can redistribute it and/or |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 class CORE_EXPORT FrameView final | 93 class CORE_EXPORT FrameView final |
| 94 : public Widget, | 94 : public Widget, |
| 95 public PaintInvalidationCapableScrollableArea { | 95 public PaintInvalidationCapableScrollableArea { |
| 96 USING_GARBAGE_COLLECTED_MIXIN(FrameView); | 96 USING_GARBAGE_COLLECTED_MIXIN(FrameView); |
| 97 | 97 |
| 98 friend class PaintControllerPaintTestBase; | 98 friend class PaintControllerPaintTestBase; |
| 99 friend class Internals; | 99 friend class Internals; |
| 100 friend class LayoutPart; // for invalidateTreeIfNeeded | 100 friend class LayoutPart; // for invalidateTreeIfNeeded |
| 101 | 101 |
| 102 public: | 102 public: |
| 103 static FrameView* create(LocalFrame*); | 103 static FrameView* create(LocalFrame&); |
| 104 static FrameView* create(LocalFrame*, const IntSize& initialSize); | 104 static FrameView* create(LocalFrame&, const IntSize& initialSize); |
| 105 | 105 |
| 106 ~FrameView() override; | 106 ~FrameView() override; |
| 107 | 107 |
| 108 void invalidateRect(const IntRect&) override; | 108 void invalidateRect(const IntRect&) override; |
| 109 void setFrameRect(const IntRect&) override; | 109 void setFrameRect(const IntRect&) override; |
| 110 | 110 |
| 111 LocalFrame& frame() const { | 111 LocalFrame& frame() const { |
| 112 ASSERT(m_frame); | 112 ASSERT(m_frame); |
| 113 return *m_frame; | 113 return *m_frame; |
| 114 } | 114 } |
| (...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 787 : m_scope(&view->m_inUpdateScrollbars, true) {} | 787 : m_scope(&view->m_inUpdateScrollbars, true) {} |
| 788 | 788 |
| 789 private: | 789 private: |
| 790 AutoReset<bool> m_scope; | 790 AutoReset<bool> m_scope; |
| 791 }; | 791 }; |
| 792 | 792 |
| 793 // Only for LayoutPart to traverse into sub frames during paint invalidation. | 793 // Only for LayoutPart to traverse into sub frames during paint invalidation. |
| 794 void invalidateTreeIfNeeded(const PaintInvalidationState&); | 794 void invalidateTreeIfNeeded(const PaintInvalidationState&); |
| 795 | 795 |
| 796 private: | 796 private: |
| 797 explicit FrameView(LocalFrame*); | 797 explicit FrameView(LocalFrame&); |
| 798 class ScrollbarManager : public blink::ScrollbarManager { | 798 class ScrollbarManager : public blink::ScrollbarManager { |
| 799 DISALLOW_NEW(); | 799 DISALLOW_NEW(); |
| 800 | 800 |
| 801 // Helper class to manage the life cycle of Scrollbar objects. | 801 // Helper class to manage the life cycle of Scrollbar objects. |
| 802 public: | 802 public: |
| 803 ScrollbarManager(FrameView& scroller) : blink::ScrollbarManager(scroller) {} | 803 ScrollbarManager(FrameView& scroller) : blink::ScrollbarManager(scroller) {} |
| 804 | 804 |
| 805 void setHasHorizontalScrollbar(bool hasScrollbar) override; | 805 void setHasHorizontalScrollbar(bool hasScrollbar) override; |
| 806 void setHasVerticalScrollbar(bool hasScrollbar) override; | 806 void setHasVerticalScrollbar(bool hasScrollbar) override; |
| 807 | 807 |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 970 bool m_canHaveScrollbars; | 970 bool m_canHaveScrollbars; |
| 971 | 971 |
| 972 bool m_hasPendingLayout; | 972 bool m_hasPendingLayout; |
| 973 LayoutSubtreeRootList m_layoutSubtreeRootList; | 973 LayoutSubtreeRootList m_layoutSubtreeRootList; |
| 974 DepthOrderedLayoutObjectList m_orthogonalWritingModeRootList; | 974 DepthOrderedLayoutObjectList m_orthogonalWritingModeRootList; |
| 975 | 975 |
| 976 bool m_layoutSchedulingEnabled; | 976 bool m_layoutSchedulingEnabled; |
| 977 bool m_inSynchronousPostLayout; | 977 bool m_inSynchronousPostLayout; |
| 978 int m_layoutCount; | 978 int m_layoutCount; |
| 979 unsigned m_nestedLayoutCount; | 979 unsigned m_nestedLayoutCount; |
| 980 Timer<FrameView> m_postLayoutTasksTimer; | 980 TaskRunnerTimer<FrameView> m_postLayoutTasksTimer; |
| 981 Timer<FrameView> m_updateWidgetsTimer; | 981 TaskRunnerTimer<FrameView> m_updateWidgetsTimer; |
| 982 | 982 |
| 983 bool m_firstLayout; | 983 bool m_firstLayout; |
| 984 bool m_isTransparent; | 984 bool m_isTransparent; |
| 985 Color m_baseBackgroundColor; | 985 Color m_baseBackgroundColor; |
| 986 IntSize m_lastViewportSize; | 986 IntSize m_lastViewportSize; |
| 987 float m_lastZoomFactor; | 987 float m_lastZoomFactor; |
| 988 | 988 |
| 989 AtomicString m_mediaType; | 989 AtomicString m_mediaType; |
| 990 AtomicString m_mediaTypeWhenNotPrinting; | 990 AtomicString m_mediaTypeWhenNotPrinting; |
| 991 | 991 |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1148 widget.isFrameView()); | 1148 widget.isFrameView()); |
| 1149 DEFINE_TYPE_CASTS(FrameView, | 1149 DEFINE_TYPE_CASTS(FrameView, |
| 1150 ScrollableArea, | 1150 ScrollableArea, |
| 1151 scrollableArea, | 1151 scrollableArea, |
| 1152 scrollableArea->isFrameView(), | 1152 scrollableArea->isFrameView(), |
| 1153 scrollableArea.isFrameView()); | 1153 scrollableArea.isFrameView()); |
| 1154 | 1154 |
| 1155 } // namespace blink | 1155 } // namespace blink |
| 1156 | 1156 |
| 1157 #endif // FrameView_h | 1157 #endif // FrameView_h |
| OLD | NEW |