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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 // NOTE: Scrollbar exclusion is based on the FrameView's scrollbars. To excl
ude | 148 // NOTE: Scrollbar exclusion is based on the FrameView's scrollbars. To excl
ude |
149 // scrollbars on the root PaintLayer, use LayoutView::layoutSize. | 149 // scrollbars on the root PaintLayer, use LayoutView::layoutSize. |
150 IntSize layoutSize(IncludeScrollbarsInRect = ExcludeScrollbars) const; | 150 IntSize layoutSize(IncludeScrollbarsInRect = ExcludeScrollbars) const; |
151 void setLayoutSize(const IntSize&); | 151 void setLayoutSize(const IntSize&); |
152 | 152 |
153 // If this is set to false, the layout size will need to be explicitly set b
y the owner. | 153 // If this is set to false, the layout size will need to be explicitly set b
y the owner. |
154 // E.g. WebViewImpl sets its mainFrame's layout size manually | 154 // E.g. WebViewImpl sets its mainFrame's layout size manually |
155 void setLayoutSizeFixedToFrameSize(bool isFixed) { m_layoutSizeFixedToFrameS
ize = isFixed; } | 155 void setLayoutSizeFixedToFrameSize(bool isFixed) { m_layoutSizeFixedToFrameS
ize = isFixed; } |
156 bool layoutSizeFixedToFrameSize() { return m_layoutSizeFixedToFrameSize; } | 156 bool layoutSizeFixedToFrameSize() { return m_layoutSizeFixedToFrameSize; } |
157 | 157 |
158 bool needsFullPaintInvalidation() const { return m_doFullPaintInvalidation;
} | |
159 | |
160 void updateAcceleratedCompositingSettings(); | 158 void updateAcceleratedCompositingSettings(); |
161 | 159 |
162 void recalcOverflowAfterStyleChange(); | 160 void recalcOverflowAfterStyleChange(); |
163 | 161 |
164 bool isEnclosedInCompositingLayer() const; | 162 bool isEnclosedInCompositingLayer() const; |
165 | 163 |
166 void dispose() override; | 164 void dispose() override; |
167 void detachScrollbars(); | 165 void detachScrollbars(); |
168 void recalculateCustomScrollbarStyle(); | 166 void recalculateCustomScrollbarStyle(); |
169 void invalidateAllCustomScrollbarsOnActiveChanged(); | 167 void invalidateAllCustomScrollbarsOnActiveChanged(); |
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
795 // when a LocalFrame is detached by LocalFrame::detach(). | 793 // when a LocalFrame is detached by LocalFrame::detach(). |
796 // It clears the LocalFrame's m_view reference via setView(nullptr). | 794 // It clears the LocalFrame's m_view reference via setView(nullptr). |
797 // | 795 // |
798 // For Oilpan, Member reference cycles pose no problem, but | 796 // For Oilpan, Member reference cycles pose no problem, but |
799 // LocalFrame's FrameView is also cleared by that setView(), so as to | 797 // LocalFrame's FrameView is also cleared by that setView(), so as to |
800 // keep the observable lifespan of LocalFrame::view() identical. | 798 // keep the observable lifespan of LocalFrame::view() identical. |
801 Member<LocalFrame> m_frame; | 799 Member<LocalFrame> m_frame; |
802 | 800 |
803 WebDisplayMode m_displayMode; | 801 WebDisplayMode m_displayMode; |
804 | 802 |
805 bool m_doFullPaintInvalidation; | |
806 | |
807 bool m_canHaveScrollbars; | 803 bool m_canHaveScrollbars; |
808 | 804 |
809 bool m_hasPendingLayout; | 805 bool m_hasPendingLayout; |
810 LayoutSubtreeRootList m_layoutSubtreeRootList; | 806 LayoutSubtreeRootList m_layoutSubtreeRootList; |
811 DepthOrderedLayoutObjectList m_orthogonalWritingModeRootList; | 807 DepthOrderedLayoutObjectList m_orthogonalWritingModeRootList; |
812 | 808 |
813 bool m_layoutSchedulingEnabled; | 809 bool m_layoutSchedulingEnabled; |
814 bool m_inSynchronousPostLayout; | 810 bool m_inSynchronousPostLayout; |
815 int m_layoutCount; | 811 int m_layoutCount; |
816 unsigned m_nestedLayoutCount; | 812 unsigned m_nestedLayoutCount; |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
958 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) | 954 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) |
959 setIsVisuallyNonEmpty(); | 955 setIsVisuallyNonEmpty(); |
960 } | 956 } |
961 | 957 |
962 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); | 958 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); |
963 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF
rameView(), scrollableArea.isFrameView()); | 959 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF
rameView(), scrollableArea.isFrameView()); |
964 | 960 |
965 } // namespace blink | 961 } // namespace blink |
966 | 962 |
967 #endif // FrameView_h | 963 #endif // FrameView_h |
OLD | NEW |