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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 class LocalFrame; | 72 class LocalFrame; |
73 class KURL; | 73 class KURL; |
74 class Node; | 74 class Node; |
75 class LayoutAnalyzer; | 75 class LayoutAnalyzer; |
76 class LayoutBox; | 76 class LayoutBox; |
77 class LayoutEmbeddedObject; | 77 class LayoutEmbeddedObject; |
78 class LayoutObject; | 78 class LayoutObject; |
79 class LayoutReplaced; | 79 class LayoutReplaced; |
80 class LayoutScrollbarPart; | 80 class LayoutScrollbarPart; |
81 class LayoutView; | 81 class LayoutView; |
| 82 class PaintArtifactCompositor; |
82 class PaintController; | 83 class PaintController; |
83 class PaintInvalidationState; | 84 class PaintInvalidationState; |
84 class Page; | 85 class Page; |
85 class ScrollingCoordinator; | 86 class ScrollingCoordinator; |
86 class TracedValue; | 87 class TracedValue; |
87 struct AnnotatedRegionValue; | 88 struct AnnotatedRegionValue; |
88 struct CompositedSelection; | 89 struct CompositedSelection; |
89 | 90 |
90 typedef unsigned long long DOMTimeStamp; | 91 typedef unsigned long long DOMTimeStamp; |
91 | 92 |
(...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
950 | 951 |
951 // For testing. | 952 // For testing. |
952 struct ObjectPaintInvalidation { | 953 struct ObjectPaintInvalidation { |
953 String name; | 954 String name; |
954 PaintInvalidationReason reason; | 955 PaintInvalidationReason reason; |
955 }; | 956 }; |
956 std::unique_ptr<Vector<ObjectPaintInvalidation>> m_trackedObjectPaintInvalid
ations; | 957 std::unique_ptr<Vector<ObjectPaintInvalidation>> m_trackedObjectPaintInvalid
ations; |
957 | 958 |
958 // For Slimming Paint v2 only. | 959 // For Slimming Paint v2 only. |
959 std::unique_ptr<PaintController> m_paintController; | 960 std::unique_ptr<PaintController> m_paintController; |
| 961 std::unique_ptr<PaintArtifactCompositor> m_paintArtifactCompositor; |
960 }; | 962 }; |
961 | 963 |
962 inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count) | 964 inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count) |
963 { | 965 { |
964 if (m_isVisuallyNonEmpty) | 966 if (m_isVisuallyNonEmpty) |
965 return; | 967 return; |
966 m_visuallyNonEmptyCharacterCount += count; | 968 m_visuallyNonEmptyCharacterCount += count; |
967 // Use a threshold value to prevent very small amounts of visible content fr
om triggering didMeaningfulLayout. | 969 // Use a threshold value to prevent very small amounts of visible content fr
om triggering didMeaningfulLayout. |
968 // The first few hundred characters rarely contain the interesting content o
f the page. | 970 // The first few hundred characters rarely contain the interesting content o
f the page. |
969 static const unsigned visualCharacterThreshold = 200; | 971 static const unsigned visualCharacterThreshold = 200; |
(...skipping 11 matching lines...) Expand all Loading... |
981 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) | 983 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) |
982 setIsVisuallyNonEmpty(); | 984 setIsVisuallyNonEmpty(); |
983 } | 985 } |
984 | 986 |
985 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); | 987 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); |
986 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF
rameView(), scrollableArea.isFrameView()); | 988 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF
rameView(), scrollableArea.isFrameView()); |
987 | 989 |
988 } // namespace blink | 990 } // namespace blink |
989 | 991 |
990 #endif // FrameView_h | 992 #endif // FrameView_h |
OLD | NEW |