| 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 void updateAllLifecyclePhases(); | 226 void updateAllLifecyclePhases(); |
| 227 | 227 |
| 228 // Computes the style, layout and compositing lifecycle stages if needed. Af
ter calling this method, all frames wil lbe in a lifecycle | 228 // Computes the style, layout and compositing lifecycle stages if needed. Af
ter calling this method, all frames wil lbe in a lifecycle |
| 229 // state >= CompositingClean, and scrolling has been updated. | 229 // state >= CompositingClean, and scrolling has been updated. |
| 230 void updateLifecycleToCompositingCleanPlusScrolling(); | 230 void updateLifecycleToCompositingCleanPlusScrolling(); |
| 231 | 231 |
| 232 bool invalidateViewportConstrainedObjects(); | 232 bool invalidateViewportConstrainedObjects(); |
| 233 | 233 |
| 234 void incrementVisuallyNonEmptyCharacterCount(unsigned); | 234 void incrementVisuallyNonEmptyCharacterCount(unsigned); |
| 235 void incrementVisuallyNonEmptyPixelCount(const IntSize&); | 235 void incrementVisuallyNonEmptyPixelCount(const IntSize&); |
| 236 bool isVisuallyNonEmpty() const { return m_isVisuallyNonEmpty; } |
| 236 void setIsVisuallyNonEmpty() { m_isVisuallyNonEmpty = true; } | 237 void setIsVisuallyNonEmpty() { m_isVisuallyNonEmpty = true; } |
| 237 void enableAutoSizeMode(const IntSize& minSize, const IntSize& maxSize); | 238 void enableAutoSizeMode(const IntSize& minSize, const IntSize& maxSize); |
| 238 void disableAutoSizeMode(); | 239 void disableAutoSizeMode(); |
| 239 | 240 |
| 240 void forceLayoutForPagination(const FloatSize& pageSize, const FloatSize& or
iginalPageSize, float maximumShrinkFactor); | 241 void forceLayoutForPagination(const FloatSize& pageSize, const FloatSize& or
iginalPageSize, float maximumShrinkFactor); |
| 241 | 242 |
| 242 enum UrlFragmentBehavior { | 243 enum UrlFragmentBehavior { |
| 243 UrlFragmentScroll, | 244 UrlFragmentScroll, |
| 244 UrlFragmentDontScroll | 245 UrlFragmentDontScroll |
| 245 }; | 246 }; |
| (...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 770 | 771 |
| 771 // In frame coordinates. | 772 // In frame coordinates. |
| 772 Vector<IntRect> m_trackedPaintInvalidationRects; | 773 Vector<IntRect> m_trackedPaintInvalidationRects; |
| 773 | 774 |
| 774 RefPtrWillBeMember<Node> m_nodeToDraw; | 775 RefPtrWillBeMember<Node> m_nodeToDraw; |
| 775 bool m_isPainting; | 776 bool m_isPainting; |
| 776 | 777 |
| 777 unsigned m_visuallyNonEmptyCharacterCount; | 778 unsigned m_visuallyNonEmptyCharacterCount; |
| 778 unsigned m_visuallyNonEmptyPixelCount; | 779 unsigned m_visuallyNonEmptyPixelCount; |
| 779 bool m_isVisuallyNonEmpty; | 780 bool m_isVisuallyNonEmpty; |
| 780 bool m_firstVisuallyNonEmptyLayoutCallbackPending; | |
| 781 | 781 |
| 782 RefPtrWillBeMember<Node> m_scrollAnchor; | 782 RefPtrWillBeMember<Node> m_scrollAnchor; |
| 783 | 783 |
| 784 // layoutObject to hold our custom scroll corner. | 784 // layoutObject to hold our custom scroll corner. |
| 785 LayoutScrollbarPart* m_scrollCorner; | 785 LayoutScrollbarPart* m_scrollCorner; |
| 786 | 786 |
| 787 OwnPtrWillBeMember<ScrollableAreaSet> m_scrollableAreas; | 787 OwnPtrWillBeMember<ScrollableAreaSet> m_scrollableAreas; |
| 788 OwnPtrWillBeMember<ScrollableAreaSet> m_animatingScrollableAreas; | 788 OwnPtrWillBeMember<ScrollableAreaSet> m_animatingScrollableAreas; |
| 789 OwnPtr<ResizerAreaSet> m_resizerAreas; | 789 OwnPtr<ResizerAreaSet> m_resizerAreas; |
| 790 OwnPtr<ViewportConstrainedObjectSet> m_viewportConstrainedObjects; | 790 OwnPtr<ViewportConstrainedObjectSet> m_viewportConstrainedObjects; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 864 static const unsigned visualPixelThreshold = 32 * 32; | 864 static const unsigned visualPixelThreshold = 32 * 32; |
| 865 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) | 865 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) |
| 866 setIsVisuallyNonEmpty(); | 866 setIsVisuallyNonEmpty(); |
| 867 } | 867 } |
| 868 | 868 |
| 869 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); | 869 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); |
| 870 | 870 |
| 871 } // namespace blink | 871 } // namespace blink |
| 872 | 872 |
| 873 #endif // FrameView_h | 873 #endif // FrameView_h |
| OLD | NEW |