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