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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 WebDisplayMode displayMode() { return m_displayMode; } | 188 WebDisplayMode displayMode() { return m_displayMode; } |
189 void setDisplayMode(WebDisplayMode); | 189 void setDisplayMode(WebDisplayMode); |
190 | 190 |
191 // Fixed-position objects. | 191 // Fixed-position objects. |
192 typedef HashSet<LayoutObject*> ViewportConstrainedObjectSet; | 192 typedef HashSet<LayoutObject*> ViewportConstrainedObjectSet; |
193 void addViewportConstrainedObject(LayoutObject*); | 193 void addViewportConstrainedObject(LayoutObject*); |
194 void removeViewportConstrainedObject(LayoutObject*); | 194 void removeViewportConstrainedObject(LayoutObject*); |
195 const ViewportConstrainedObjectSet* viewportConstrainedObjects() const { ret
urn m_viewportConstrainedObjects.get(); } | 195 const ViewportConstrainedObjectSet* viewportConstrainedObjects() const { ret
urn m_viewportConstrainedObjects.get(); } |
196 bool hasViewportConstrainedObjects() const { return m_viewportConstrainedObj
ects && m_viewportConstrainedObjects->size() > 0; } | 196 bool hasViewportConstrainedObjects() const { return m_viewportConstrainedObj
ects && m_viewportConstrainedObjects->size() > 0; } |
197 | 197 |
| 198 // Sticky objects. |
| 199 void addStickyPositionObject() { ++m_stickyPositionObjectCount; } |
| 200 void removeStickyPositionObject() { --m_stickyPositionObjectCount; } |
| 201 bool hasStickyPositionObjects() const { return m_stickyPositionObjectCount;
} |
| 202 |
198 // Objects with background-attachment:fixed. | 203 // Objects with background-attachment:fixed. |
199 void addBackgroundAttachmentFixedObject(LayoutObject*); | 204 void addBackgroundAttachmentFixedObject(LayoutObject*); |
200 void removeBackgroundAttachmentFixedObject(LayoutObject*); | 205 void removeBackgroundAttachmentFixedObject(LayoutObject*); |
201 bool hasBackgroundAttachmentFixedObjects() const { return m_backgroundAttach
mentFixedObjects.size(); } | 206 bool hasBackgroundAttachmentFixedObjects() const { return m_backgroundAttach
mentFixedObjects.size(); } |
202 void invalidateBackgroundAttachmentFixedObjects(); | 207 void invalidateBackgroundAttachmentFixedObjects(); |
203 | 208 |
204 void handleLoadCompleted(); | 209 void handleLoadCompleted(); |
205 | 210 |
206 void updateDocumentAnnotatedRegions() const; | 211 void updateDocumentAnnotatedRegions() const; |
207 | 212 |
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
812 | 817 |
813 RefPtrWillBeMember<Node> m_scrollAnchor; | 818 RefPtrWillBeMember<Node> m_scrollAnchor; |
814 | 819 |
815 // layoutObject to hold our custom scroll corner. | 820 // layoutObject to hold our custom scroll corner. |
816 LayoutScrollbarPart* m_scrollCorner; | 821 LayoutScrollbarPart* m_scrollCorner; |
817 | 822 |
818 OwnPtrWillBeMember<ScrollableAreaSet> m_scrollableAreas; | 823 OwnPtrWillBeMember<ScrollableAreaSet> m_scrollableAreas; |
819 OwnPtrWillBeMember<ScrollableAreaSet> m_animatingScrollableAreas; | 824 OwnPtrWillBeMember<ScrollableAreaSet> m_animatingScrollableAreas; |
820 OwnPtr<ResizerAreaSet> m_resizerAreas; | 825 OwnPtr<ResizerAreaSet> m_resizerAreas; |
821 OwnPtr<ViewportConstrainedObjectSet> m_viewportConstrainedObjects; | 826 OwnPtr<ViewportConstrainedObjectSet> m_viewportConstrainedObjects; |
| 827 unsigned m_stickyPositionObjectCount; |
822 ViewportConstrainedObjectSet m_backgroundAttachmentFixedObjects; | 828 ViewportConstrainedObjectSet m_backgroundAttachmentFixedObjects; |
823 OwnPtrWillBeMember<FrameViewAutoSizeInfo> m_autoSizeInfo; | 829 OwnPtrWillBeMember<FrameViewAutoSizeInfo> m_autoSizeInfo; |
824 | 830 |
825 IntSize m_inputEventsOffsetForEmulation; | 831 IntSize m_inputEventsOffsetForEmulation; |
826 float m_inputEventsScaleFactorForEmulation; | 832 float m_inputEventsScaleFactorForEmulation; |
827 | 833 |
828 IntSize m_layoutSize; | 834 IntSize m_layoutSize; |
829 bool m_layoutSizeFixedToFrameSize; | 835 bool m_layoutSizeFixedToFrameSize; |
830 | 836 |
831 Timer<FrameView> m_didScrollTimer; | 837 Timer<FrameView> m_didScrollTimer; |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
919 static const unsigned visualPixelThreshold = 32 * 32; | 925 static const unsigned visualPixelThreshold = 32 * 32; |
920 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) | 926 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) |
921 setIsVisuallyNonEmpty(); | 927 setIsVisuallyNonEmpty(); |
922 } | 928 } |
923 | 929 |
924 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); | 930 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); |
925 | 931 |
926 } // namespace blink | 932 } // namespace blink |
927 | 933 |
928 #endif // FrameView_h | 934 #endif // FrameView_h |
OLD | NEW |