| 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 14 matching lines...) Expand all Loading... |
| 25 #ifndef FrameView_h | 25 #ifndef FrameView_h |
| 26 #define FrameView_h | 26 #define FrameView_h |
| 27 | 27 |
| 28 #include "core/CoreExport.h" | 28 #include "core/CoreExport.h" |
| 29 #include "core/dom/DocumentLifecycle.h" | 29 #include "core/dom/DocumentLifecycle.h" |
| 30 #include "core/frame/FrameViewAutoSizeInfo.h" | 30 #include "core/frame/FrameViewAutoSizeInfo.h" |
| 31 #include "core/frame/LayoutSubtreeRootList.h" | 31 #include "core/frame/LayoutSubtreeRootList.h" |
| 32 #include "core/frame/RootFrameViewport.h" | 32 #include "core/frame/RootFrameViewport.h" |
| 33 #include "core/layout/ScrollAnchor.h" | 33 #include "core/layout/ScrollAnchor.h" |
| 34 #include "core/layout/api/LayoutViewItem.h" | 34 #include "core/layout/api/LayoutViewItem.h" |
| 35 #include "core/paint/FirstMeaningfulPaintDetector.h" |
| 35 #include "core/paint/PaintInvalidationCapableScrollableArea.h" | 36 #include "core/paint/PaintInvalidationCapableScrollableArea.h" |
| 36 #include "core/paint/PaintPhase.h" | 37 #include "core/paint/PaintPhase.h" |
| 37 #include "platform/RuntimeEnabledFeatures.h" | 38 #include "platform/RuntimeEnabledFeatures.h" |
| 38 #include "platform/Widget.h" | 39 #include "platform/Widget.h" |
| 39 #include "platform/geometry/IntRect.h" | 40 #include "platform/geometry/IntRect.h" |
| 40 #include "platform/geometry/LayoutRect.h" | 41 #include "platform/geometry/LayoutRect.h" |
| 41 #include "platform/graphics/Color.h" | 42 #include "platform/graphics/Color.h" |
| 42 #include "platform/graphics/paint/ClipPaintPropertyNode.h" | 43 #include "platform/graphics/paint/ClipPaintPropertyNode.h" |
| 43 #include "platform/graphics/paint/EffectPaintPropertyNode.h" | 44 #include "platform/graphics/paint/EffectPaintPropertyNode.h" |
| 44 #include "platform/graphics/paint/TransformPaintPropertyNode.h" | 45 #include "platform/graphics/paint/TransformPaintPropertyNode.h" |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 void updateLifecycleToCompositingCleanPlusScrolling(); | 256 void updateLifecycleToCompositingCleanPlusScrolling(); |
| 256 | 257 |
| 257 // Computes only the style and layout lifecycle stages. | 258 // Computes only the style and layout lifecycle stages. |
| 258 // After calling this method, all frames will be in a lifecycle state >= Lay
outClean (unless throttling is allowed). | 259 // After calling this method, all frames will be in a lifecycle state >= Lay
outClean (unless throttling is allowed). |
| 259 void updateLifecycleToLayoutClean(); | 260 void updateLifecycleToLayoutClean(); |
| 260 | 261 |
| 261 void scheduleVisualUpdateForPaintInvalidationIfNeeded(); | 262 void scheduleVisualUpdateForPaintInvalidationIfNeeded(); |
| 262 | 263 |
| 263 bool invalidateViewportConstrainedObjects(); | 264 bool invalidateViewportConstrainedObjects(); |
| 264 | 265 |
| 266 void incrementLayoutObjectCount() { m_layoutObjectCounter.increment(); } |
| 265 void incrementVisuallyNonEmptyCharacterCount(unsigned); | 267 void incrementVisuallyNonEmptyCharacterCount(unsigned); |
| 266 void incrementVisuallyNonEmptyPixelCount(const IntSize&); | 268 void incrementVisuallyNonEmptyPixelCount(const IntSize&); |
| 267 bool isVisuallyNonEmpty() const { return m_isVisuallyNonEmpty; } | 269 bool isVisuallyNonEmpty() const { return m_isVisuallyNonEmpty; } |
| 268 void setIsVisuallyNonEmpty() { m_isVisuallyNonEmpty = true; } | 270 void setIsVisuallyNonEmpty() { m_isVisuallyNonEmpty = true; } |
| 269 void enableAutoSizeMode(const IntSize& minSize, const IntSize& maxSize); | 271 void enableAutoSizeMode(const IntSize& minSize, const IntSize& maxSize); |
| 270 void disableAutoSizeMode(); | 272 void disableAutoSizeMode(); |
| 271 | 273 |
| 272 void forceLayoutForPagination(const FloatSize& pageSize, const FloatSize& or
iginalPageSize, float maximumShrinkFactor); | 274 void forceLayoutForPagination(const FloatSize& pageSize, const FloatSize& or
iginalPageSize, float maximumShrinkFactor); |
| 273 | 275 |
| 274 enum UrlFragmentBehavior { | 276 enum UrlFragmentBehavior { |
| (...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 819 float m_lastZoomFactor; | 821 float m_lastZoomFactor; |
| 820 | 822 |
| 821 AtomicString m_mediaType; | 823 AtomicString m_mediaType; |
| 822 AtomicString m_mediaTypeWhenNotPrinting; | 824 AtomicString m_mediaTypeWhenNotPrinting; |
| 823 | 825 |
| 824 bool m_safeToPropagateScrollToParent; | 826 bool m_safeToPropagateScrollToParent; |
| 825 | 827 |
| 826 unsigned m_visuallyNonEmptyCharacterCount; | 828 unsigned m_visuallyNonEmptyCharacterCount; |
| 827 uint64_t m_visuallyNonEmptyPixelCount; | 829 uint64_t m_visuallyNonEmptyPixelCount; |
| 828 bool m_isVisuallyNonEmpty; | 830 bool m_isVisuallyNonEmpty; |
| 831 FirstMeaningfulPaintDetector::LayoutObjectCounter m_layoutObjectCounter; |
| 829 | 832 |
| 830 Member<Node> m_fragmentAnchor; | 833 Member<Node> m_fragmentAnchor; |
| 831 | 834 |
| 832 // layoutObject to hold our custom scroll corner. | 835 // layoutObject to hold our custom scroll corner. |
| 833 LayoutScrollbarPart* m_scrollCorner; | 836 LayoutScrollbarPart* m_scrollCorner; |
| 834 | 837 |
| 835 Member<ScrollableAreaSet> m_scrollableAreas; | 838 Member<ScrollableAreaSet> m_scrollableAreas; |
| 836 Member<ScrollableAreaSet> m_animatingScrollableAreas; | 839 Member<ScrollableAreaSet> m_animatingScrollableAreas; |
| 837 std::unique_ptr<ResizerAreaSet> m_resizerAreas; | 840 std::unique_ptr<ResizerAreaSet> m_resizerAreas; |
| 838 std::unique_ptr<ViewportConstrainedObjectSet> m_viewportConstrainedObjects; | 841 std::unique_ptr<ViewportConstrainedObjectSet> m_viewportConstrainedObjects; |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 958 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) | 961 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) |
| 959 setIsVisuallyNonEmpty(); | 962 setIsVisuallyNonEmpty(); |
| 960 } | 963 } |
| 961 | 964 |
| 962 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); | 965 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); |
| 963 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF
rameView(), scrollableArea.isFrameView()); | 966 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF
rameView(), scrollableArea.isFrameView()); |
| 964 | 967 |
| 965 } // namespace blink | 968 } // namespace blink |
| 966 | 969 |
| 967 #endif // FrameView_h | 970 #endif // FrameView_h |
| OLD | NEW |